Function at 0x466270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x62aabc]
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 0x466637
inc esi
mov ecx, edi
mov dword [ebp + 0x10], esi
mov edx, edi
cmp al, 0x49
jne 0x466323
cmp dword [ebp - 0x34], 0
jne 0x466375
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 0x466387
lea eax, [ecx + 0xa]
mov dword [ebp - 0x1c], eax
jmp 0x466378
cmp al, 0x66
je 0x46639f
cmp al, 0x62
jne 0x466375
mov eax, dword [edi + 4]
add edi, 8
mov dword [ebp - 0x30], eax
test eax, eax
je 0x466375
push dword [ebp - 0x28]
mov esi, dword [edx]
push eax
push esi
push dword [ebp - 0x2c]
call fcn.00471de0
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.00417540
add esp, 0x34
cmp eax, ecx
mov ecx, dword [ebp - 0x18]
jne 0x466393
mov esi, dword [ebp + 0x10]
jmp 0x466378
mov ecx, dword [ebp - 0x18]
mov al, byte [esi]
test al, al
jne 0x4662c7
jmp 0x466637
mov dword [ebp - 0x20], 0xffffff98
jmp 0x466637
mov dword [ebp - 0x20], 0
jmp 0x466637
mov eax, dword [edi]
test ebx, ebx
je 0x4663c7
cmp dword [ebx], 0
je 0x4663c7
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push 0
push eax
call dword [0x630f64]
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4663dd
push 0x619cb0
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 0x4663ed
mov dword [ebp - 0x20], 0xfffffe09
jmp 0x466634
test ebx, ebx
je 0x466444
cmp dword [ebx + 8], 0
je 0x466444
cmp dword [ebx], 0
je 0x46642d
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push 1
push dword [ebx + 0x1a0]
push eax
call dword [0x630f70]
add esp, 0x14
test eax, eax
je 0x466441
mov dword [ebp - 0x20], 0xfffffe09
mov eax, dword [ebp - 0x14]
jmp 0x46660d
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 0x46641a
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x466609
mov edx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4664a1
cmp edi, dword [ebp - 0x24]
mov ecx, edi
cmovge ecx, dword [ebp - 0x24]
cmp dword [ebx], 0
je 0x46647e
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push ecx
push edx
push eax
call dword [0x630f68]
add esp, 0x14
jmp 0x46648c
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 0x4664b3
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 0x4665db
test ebx, ebx
je 0x46658c
cmp dword [ebx + 4], 0
je 0x46658c
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.00401490
add esp, 0x10
test eax, eax
js 0x4665cf
cmp eax, 0xa
jae 0x4665cf
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466512
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 0x466534
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.00471de0
mov edx, eax
add esp, 0x10
test edx, edx
jle 0x466425
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 0x466570
sub ecx, dword [ebp - 0x30]
lea eax, [ecx + 2]
add eax, esi
cmp edx, eax
jne 0x466425
mov edx, dword [ebp - 0x1c]
jmp 0x4665c3
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call fcn.00471de0
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.00417540
add esp, 0x2c
test eax, eax
jle 0x466606
cmp eax, esi
jne 0x466606
test edi, edi
je 0x466606
mov eax, dword [ebp - 0x14]
jmp 0x466452
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0xfffffc71
jmp 0x46660d
test ebx, ebx
je 0x4665ff
cmp dword [ebx + 4], 0
je 0x4665ff
push dword [ebp - 0x28]
push 5
push str.0_r_n_r_n
push dword [ebp - 0x2c]
call fcn.00471de0
mov eax, dword [ebp - 0x14]
add esp, 0x10
jmp 0x46660d
mov dword [ebp - 0x20], 0xfffffe09
mov eax, dword [ebp - 0x14]
test ebx, ebx
je 0x46662a
cmp dword [ebx], 0
je 0x46662a
push dword [ebx + 0x1b0]
push dword [ebx + 0x1ac]
push eax
call dword [0x630f74]
add esp, 0xc
jmp 0x466634
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.0054f742
mov esp, ebp
pop ebp
ret