Function at 0x462760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x234], eax
xorps xmm0, xmm0
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x210], 0
movlpd qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x228], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x240], ecx
test ebx, ebx
je 0x462dd1
mov ecx, edi
call fcn.0046ced0
push eax
push ecx
mov ecx, edi
call fcn.0046ced0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.00479680
add esp, 0xc
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x462809
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
push eax
test esi, esi
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, esi
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x462e0a
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
jmp 0x462850
mov eax, dword [ebp - 0x21c]
or eax, dword [ebp - 0x218]
je 0x462883
push 0x4c73d0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x462df0
push dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push str.___s_r_n
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x462df0
mov eax, dword [ebx + 8]
cdq
test edx, edx
jl 0x462deb
jg 0x4628e9
test eax, eax
jb 0x462deb
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
push dword [ebx + 4]
xor edx, edx
lea ecx, [ebp - 0x210]
call fcn.00462300
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
push 0x4c79fc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x462df0
cmp dword [ebx + 0x24], eax
je 0x46299d
push dword [ebp - 0x228]
call dword [0x4e52dc]
add esp, 4
mov ecx, edi
call fcn.0046ced0
push eax
push ecx
mov ecx, edi
call fcn.0046ced0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.00479680
add esp, 0xc
mov dword [ebp - 0x228], eax
test eax, eax
je 0x462de4
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
mov edi, ebx
mov dword [ebp - 0x224], edi
cmp dword [ebx + 0x24], 0
je 0x4629da
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
mov ecx, edi
jmp 0x4629ed
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x462a0c
cmp dword [ebx + 0x2c], 0
jne 0x4629eb
test al, 1
je 0x462a04
mov ecx, ebx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x210]
call fcn.00462680
mov esi, eax
add esp, 4
test esi, esi
jne 0x462df0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x462a39
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
mov edi, dword [edi + 0x20]
test edi, edi
je 0x462a70
push dword [edi]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
mov edi, dword [edi + 4]
test edi, edi
jne 0x462a40
jmp 0x462a78
test esi, esi
jne 0x462df0
push str._r_n_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x462df0
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x462bd8
test al, 0x10
je 0x462ad3
mov eax, dword [ebx + 0x18]
cdq
test edx, edx
jl 0x462cba
jg 0x462ac2
test eax, eax
jb 0x462cba
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
push dword [ebx + 0x14]
jmp 0x462bb8
test al, 0x40
je 0x462b8a
test al, al
jns 0x462ae7
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
jmp 0x462aef
mov eax, dword [ebx + 0x10]
cdq
mov esi, eax
mov edi, edx
mov ebx, dword [ebx + 0x30]
test edi, edi
jl 0x462b74
jg 0x462afc
test esi, esi
jb 0x462b74
cmp dword [ebp - 0x218], 0
jl 0x462b74
jg 0x462b10
cmp dword [ebp - 0x21c], 0
jb 0x462b74
push 0x10
call dword [0x4e52c8]
add esp, 4
test eax, eax
jne 0x462b33
mov ebx, dword [ebp - 0x230]
lea esi, [eax + 0x1b]
mov edi, dword [ebp - 0x220]
jmp 0x462cf9
mov ecx, dword [ebp - 0x210]
mov dword [eax], 0
mov dword [eax + 8], ebx
mov dword [eax + 4], 2
mov dword [ebp - 0x210], eax
test ecx, ecx
je 0x462b55
mov dword [ecx], eax
add dword [ebp - 0x21c], esi
mov ebx, dword [ebp - 0x230]
adc dword [ebp - 0x218], edi
xor esi, esi
mov edi, dword [ebp - 0x220]
jmp 0x462cf9
mov ebx, dword [ebp - 0x230]
mov esi, 0x2b
mov edi, dword [ebp - 0x220]
jmp 0x462cf9
test al, al
jns 0x462b96
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x462b9a
mov eax, dword [ebx + 0x10]
cdq
test edx, edx
jl 0x462cba
jg 0x462bac
test eax, eax
jb 0x462cba
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
push dword [ebx + 0xc]
mov edx, 1
lea ecx, [ebp - 0x210]
call fcn.00462300
mov edi, dword [ebp - 0x220]
add esp, 0x10
mov esi, eax
jmp 0x462cf9
mov edi, dword [ebp - 0x224]
push dword [edi + 0xc]
push 0x4cb0e4
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x462bfb
call dword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x462c0c
push 0x4cb178
push dword [edi + 0xc]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x462cc7
call dword [sym.imp.MSVCR120.dll___iob_func]
push edi
cmp edi, eax
je 0x462c48
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
lea eax, [ebp - 0x21c]
mov edx, 3
push eax
mov eax, dword [ebp - 0x224]
push 0
push 0
push dword [eax + 0xc]
jmp 0x462bbd
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
je 0x462cbf
xor edx, edx
jl 0x462cba
jg 0x462c6d
test eax, eax
jb 0x462cba
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
lea eax, [ebp - 0x20c]
mov edx, 1
push eax
lea ecx, [ebp - 0x210]
call fcn.00462300
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462cbf
push edi
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
jne 0x462c63
mov edi, dword [ebp - 0x220]
jmp 0x462cf9
mov esi, 0x2b
mov edi, dword [ebp - 0x220]
jmp 0x462cf9
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x462ce8
mov eax, dword [ebp - 0x224]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push edi
call fcn.0046c410
add esp, 0xc
mov eax, dword [ebp - 0x234]
mov esi, 0x1a
mov dword [eax], 0
mov eax, dword [ebp - 0x224]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x462d1b
test esi, esi
jne 0x462df0
mov edi, eax
jmp 0x4629a5
test esi, esi
jne 0x462df0
cmp dword [ebx + 0x24], esi
je 0x462d53
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push str._r_n___s__
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
mov ebx, dword [ebx]
mov dword [ebp - 0x230], ebx
test ebx, ebx
jne 0x462850
test esi, esi
jne 0x462df0
mov ebx, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004624b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x462df0
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
call dword [0x4e52dc]
add esp, 4
push ebx
call dword [0x4e52dc]
mov eax, dword [ebp - 0x234]
add esp, 4
mov ecx, dword [ebp - 0x23c]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov esi, 0x1b
jmp 0x462df0
mov esi, 0x2b
lea ecx, [ebp - 0x238]
call fcn.00462550
push dword [ebp - 0x228]
call dword [0x4e52dc]
add esp, 4
push dword [ebp - 0x22c]
call dword [0x4e52dc]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret