Function at 0x45e6d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov dword [ebp - 0x2c], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], ax
mov al, byte [esi]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], 0x100000
push edi
lea edi, [ebp + 0x14]
test al, al
je 0x45ea97
inc esi
mov ecx, edi
mov dword [ebp + 0x10], esi
mov edx, edi
cmp al, 0x49
jne 0x45e783
cmp dword [ebp - 0x34], 0
jne 0x45e7d5
mov ebx, dword [ecx]
add edi, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], 1
mov eax, dword [ebx + 0x1a4]
test eax, eax
cmovs eax, ecx
cmp eax, 0x100000
mov dword [ebp - 0x38], eax
cmovl ecx, eax
mov dword [ebp - 0x24], ecx
lea eax, [ecx + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x45e7e7
lea eax, [ecx + 0xa]
mov dword [ebp - 0x1c], eax
jmp 0x45e7d8
cmp al, 0x66
je 0x45e7ff
cmp al, 0x62
jne 0x45e7d5
mov eax, dword [edi + 4]
add edi, 8
mov dword [ebp - 0x30], eax
test eax, eax
je 0x45e7d5
push dword [ebp - 0x28]
mov esi, dword [edx]
push eax
push esi
push dword [ebp - 0x2c]
call fcn.0046a240
mov ecx, dword [ebp - 0x30]
push eax
push ecx
push esi
push ecx
push str._____SENT______n_.s_nbuf_length_ld__num_written_ld_n_____________n
push 0x2c0
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_srcgenlib_nethttphttpreadwrite.c
push 7
push 2
call fcn.0040d4d0
add esp, 0x34
cmp eax, ecx
mov ecx, dword [ebp - 0x18]
jne 0x45e7f3
mov esi, dword [ebp + 0x10]
jmp 0x45e7d8
mov ecx, dword [ebp - 0x18]
mov al, byte [esi]
test al, al
jne 0x45e727
jmp 0x45ea97
mov dword [ebp - 0x20], 0xffffff98
jmp 0x45ea97
mov dword [ebp - 0x20], 0
jmp 0x45ea97
mov eax, dword [edi]
test ebx, ebx
je 0x45e827
cmp dword [ebx], 0
je 0x45e827
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push 0
push eax
call dword [0x563124]
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x45e83d
push 0x516b70
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
jne 0x45e84d
mov dword [ebp - 0x20], 0xfffffe09
jmp 0x45ea94
test ebx, ebx
je 0x45e8a4
cmp dword [ebx + 8], 0
je 0x45e8a4
cmp dword [ebx], 0
je 0x45e88d
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push 1
push dword [ebx + 0x1a0]
push eax
call dword [0x563130]
add esp, 0x14
test eax, eax
je 0x45e8a1
mov dword [ebp - 0x20], 0xfffffe09
mov eax, dword [ebp - 0x14]
jmp 0x45ea6d
push 1
push dword [ebx + 0x1a0]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
jmp 0x45e87a
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x45ea69
mov edx, dword [ebp - 0x1c]
test ebx, ebx
je 0x45e901
cmp edi, dword [ebp - 0x24]
mov ecx, edi
cmovge ecx, dword [ebp - 0x24]
cmp dword [ebx], 0
je 0x45e8de
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push ecx
push edx
push eax
call dword [0x563128]
add esp, 0x14
jmp 0x45e8ec
push eax
push ecx
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov esi, eax
mov eax, edi
mov edi, dword [ebp - 0x24]
sub eax, esi
cmp dword [ebx + 0x1a4], 0
cmovge edi, eax
jmp 0x45e913
push eax
push dword [ebp - 0x24]
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x45ea3b
test ebx, ebx
je 0x45e9ec
cmp dword [ebx + 4], 0
je 0x45e9ec
mov eax, dword [ebp - 0x1c]
mov ecx, 0xa0d
push esi
push str._lx_r_n
xorps xmm0, xmm0
mov word [esi + eax], cx
lea eax, [ebp - 0x10]
push 0xa
push eax
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], 0
call fcn.0040f470
add esp, 0x10
test eax, eax
js 0x45ea2f
cmp eax, 0xa
jae 0x45ea2f
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45e972
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ecx, [ebp - 0x10]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45e994
push dword [ebp - 0x28]
sub ecx, edx
lea eax, [ecx + 2]
add eax, esi
push eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
push dword [ebp - 0x2c]
call fcn.0046a240
mov edx, eax
add esp, 0x10
test edx, edx
jle 0x45e885
lea ecx, [ebp - 0x10]
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45e9d0
sub ecx, dword [ebp - 0x30]
lea eax, [ecx + 2]
add eax, esi
cmp edx, eax
jne 0x45e885
mov edx, dword [ebp - 0x1c]
jmp 0x45ea23
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call fcn.0046a240
mov edx, dword [ebp - 0x1c]
push edx
push eax
push str._____SENT______n_.s_n_____________n
push 0x29d
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_srcgenlib_nethttphttpreadwrite.c
push 7
push 2
call fcn.0040d4d0
add esp, 0x2c
test eax, eax
jle 0x45ea66
cmp eax, esi
jne 0x45ea66
test edi, edi
je 0x45ea66
mov eax, dword [ebp - 0x14]
jmp 0x45e8b2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0xfffffc71
jmp 0x45ea6d
test ebx, ebx
je 0x45ea5f
cmp dword [ebx + 4], 0
je 0x45ea5f
push dword [ebp - 0x28]
push 5
push str.0_r_n_r_n
push dword [ebp - 0x2c]
call fcn.0046a240
mov eax, dword [ebp - 0x14]
add esp, 0x10
jmp 0x45ea6d
mov dword [ebp - 0x20], 0xfffffe09
mov eax, dword [ebp - 0x14]
test ebx, ebx
je 0x45ea8a
cmp dword [ebx], 0
je 0x45ea8a
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push eax
call dword [0x563134]
add esp, 0xc
jmp 0x45ea94
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret