Function at 0x4fef70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x240], 0
movlpd qword [ebp - 0x248], xmm0
mov dword [ebp - 0x254], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0x14]
test ebx, ebx
jne 0x4fefe7
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push edi
call fcn.004fed90
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
jne 0x4ff00d
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push edi
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 - 0x240]
push 0
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4ff652
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x270], eax
jmp 0x4ff050
mov eax, dword [ebp - 0x248]
or eax, dword [ebp - 0x244]
je 0x4ff083
push 0x6003b8
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ff62f
push edi
push str.___s_r_n
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4ff62f
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ff62f
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 8]
lea eax, [ebp - 0x240]
push dword [ebx + 4]
push esi
push eax
call fcn.004febe0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4ff62f
push 0x5fee74
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ff62f
cmp dword [ebx + 0x24], eax
je 0x4ff16c
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x4ff133
push eax
call dword [0x618b38]
add esp, 4
call fcn.004fed90
mov dword [ebp - 0x254], eax
test eax, eax
je 0x4ff59b
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4ff62f
mov edi, ebx
mov dword [ebp - 0x25c], edi
cmp dword [ebx + 0x24], 0
je 0x4ff1b6
push dword [ebp - 0x254]
lea eax, [ebp - 0x248]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4ff629
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
jmp 0x4ff1d6
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x4ff1e8
cmp dword [ebx + 0x2c], 0
jne 0x4ff1c7
test al, 1
je 0x4ff1e0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
push ebx
call fcn.004ff670
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ff629
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4ff215
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4ff629
mov edi, dword [edi + 0x20]
test edi, edi
je 0x4ff250
lea esp, [esp]
push dword [edi]
lea eax, [ebp - 0x248]
push str._r_n_s
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4ff629
mov edi, dword [edi + 4]
test edi, edi
jne 0x4ff220
jmp 0x4ff258
test esi, esi
jne 0x4ff629
push 0x600494
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ff629
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x4ff317
test al, 0x10
je 0x4ff29b
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
jmp 0x4ff2ff
test al, 0x40
je 0x4ff2f2
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0x618b34]
add esp, 4
test eax, eax
jne 0x4ff2bc
lea esi, [eax + 0x1b]
jmp 0x4ff529
mov ecx, dword [ebp - 0x240]
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [ebp - 0x240], eax
test ecx, ecx
je 0x4ff2de
mov dword [ecx], eax
add dword [ebp - 0x248], edi
adc dword [ebp - 0x244], 0
xor esi, esi
jmp 0x4ff529
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
lea eax, [ebp - 0x240]
push 1
push eax
call fcn.004febe0
add esp, 0x14
mov esi, eax
jmp 0x4ff529
mov edi, dword [ebp - 0x25c]
push dword [edi + 0xc]
push 0x600580
call fcn.004e7a70
add esp, 8
test eax, eax
je 0x4ff340
call fcn.004940e0
mov ebx, eax
mov dword [ebp - 0x264], ebx
jmp 0x4ff358
push 0x5fee64
push dword [edi + 0xc]
call fcn.004ca8ba
add esp, 8
mov dword [ebp - 0x264], eax
mov ebx, eax
test ebx, ebx
je 0x4ff4f7
call fcn.004940e0
push ebx
cmp ebx, eax
je 0x4ff418
call fcn.00494e58
mov edi, dword [edi + 0xc]
push 0x10
call dword [0x618b34]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4ff391
mov esi, 0x1b
jmp 0x4ff523
mov eax, dword [ebp - 0x240]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [ebp - 0x240], esi
test eax, eax
je 0x4ff3b3
mov dword [eax], esi
push dword [esi + 8]
push 0x600580
call fcn.004e7a70
add esp, 8
test eax, eax
jne 0x4ff407
lea eax, [ebp - 0x23c]
push eax
push dword [esi + 8]
call fcn.004cd829
add esp, 8
test eax, eax
jne 0x4ff40e
mov eax, dword [ebp - 0x236]
and eax, 0xf000
cmp eax, 0x4000
je 0x4ff40e
mov eax, dword [ebp - 0x224]
add dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x220]
adc dword [ebp - 0x244], eax
xor esi, esi
jmp 0x4ff523
mov esi, 0x2b
jmp 0x4ff523
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.004cceb1
add esp, 0x10
mov dword [ebp - 0x258], eax
test eax, eax
je 0x4ff523
mov ebx, dword [ebp - 0x240]
xor esi, esi
push 0x10
call dword [0x618b34]
mov edi, eax
add esp, 4
test edi, edi
je 0x4ff387
mov ecx, dword [ebp - 0x258]
inc ecx
mov dword [edi], esi
push ecx
call dword [0x618b34]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x4ff4e6
push dword [ebp - 0x258]
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.0049dad0
mov ecx, dword [ebp - 0x258]
add esp, 0xc
mov eax, dword [edi + 8]
mov dword [edi + 0xc], ecx
mov byte [ecx + eax], 0
mov dword [edi + 4], 1
test ebx, ebx
je 0x4ff4a6
mov dword [ebx], edi
push dword [ebp - 0x264]
add dword [ebp - 0x248], ecx
lea eax, [ebp - 0x204]
push 0x200
adc dword [ebp - 0x244], esi
mov ebx, edi
push 1
push eax
mov dword [ebp - 0x240], ebx
call fcn.004cceb1
add esp, 0x10
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x4ff444
jmp 0x4ff523
push edi
call dword [0x618b38]
add esp, 4
mov esi, 0x1b
jmp 0x4ff523
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x4ff512
push dword [edi + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.004de760
add esp, 0xc
mov eax, dword [ebp - 0x260]
mov esi, 0x1a
mov dword [eax], 0
mov ebx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x4ff54b
test esi, esi
jne 0x4ff629
mov edi, eax
jmp 0x4ff174
test esi, esi
jne 0x4ff629
mov edi, dword [ebp - 0x254]
cmp dword [ebx + 0x24], esi
je 0x4ff584
push edi
push str._r_n___s__
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4ff629
mov ebx, dword [ebx]
mov dword [ebp - 0x250], ebx
test ebx, ebx
je 0x4ff5a5
mov edi, dword [ebp - 0x24c]
jmp 0x4ff050
mov esi, 0x1b
jmp 0x4ff62f
test esi, esi
jne 0x4ff629
mov ebx, dword [ebp - 0x24c]
lea eax, [ebp - 0x248]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004fed30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4ff625
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x248]
mov dword [ecx], eax
mov eax, dword [ebp - 0x244]
mov dword [ecx + 4], eax
test edi, edi
je 0x4ff5fa
push edi
call dword [0x618b38]
add esp, 4
push ebx
call dword [0x618b38]
mov eax, dword [ebp - 0x260]
add esp, 4
mov ecx, dword [ebp - 0x268]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
mov edi, ebx
jmp 0x4ff62f
mov edi, dword [ebp - 0x24c]
lea eax, [ebp - 0x270]
push eax
call fcn.004fef00
mov eax, dword [ebp - 0x254]
add esp, 4
test eax, eax
je 0x4ff652
push eax
call dword [0x618b38]
add esp, 4
push edi
call dword [0x618b38]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret