Function at 0x5f3c10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x250
mov eax, dword [esp + 0x258]
push ebx
mov ebx, dword [esp + 0x260]
push ebp
xor ebp, ebp
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ebp
mov dword [eax], ebp
test ebx, ebx
jne 0x5f3c4d
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret
push esi
mov esi, dword [esp + 0x260]
push edi
push esi
call fcn.005dca10
add esp, 4
push eax
push esi
call fcn.005dca10
add esp, 4
push eax
push str._________________________08x_08x
call fcn.005ece20
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
test edi, edi
jne 0x5f3c8f
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret
mov eax, dword [esp + 0x270]
test eax, eax
jne 0x5f3c9f
mov eax, str.Content_Type:_multipart_form_data
push edi
push eax
push str._s__boundary_s_r_n
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.005f37f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5f3cd2
push edi
call dword [0xb264bc]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov edi, edi
cmp dword [esp + 0x14], 0
je 0x5f3d0c
push 0x6a1600
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5f3df7
mov edi, dword [esp + 0x18]
push edi
push str.___s_r_n
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5f3df7
push str.Content_Disposition:_form_data__name_
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5f3df7
lea eax, [esp + 0x14]
push eax
push dword [ebx + 8]
lea eax, [esp + 0x18]
push dword [ebx + 4]
push edi
push eax
call fcn.005f36d0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5f3df7
push 0x6be634
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5f3df7
cmp dword [ebx + 0x24], eax
je 0x5f3e23
push ebp
call dword [0xb264bc]
mov esi, dword [esp + 0x268]
push esi
call fcn.005dca10
add esp, 8
push eax
push esi
call fcn.005dca10
add esp, 4
push eax
push str._________________________08x_08x
call fcn.005ece20
mov esi, eax
add esp, 0xc
mov dword [esp + 0x1c], esi
test esi, esi
je 0x5f41de
push esi
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x5f3e27
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call fcn.005f3ba0
push ebp
call dword [0xb264bc]
push ebx
call dword [0xb264bc]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret
mov esi, dword [esp + 0x1c]
mov ebp, ebx
mov dword [esp + 0x20], ebx
lea ecx, [ecx]
cmp dword [ebx + 0x24], 0
je 0x5f3e61
push esi
push str._r_n___s_r_nContent_Disposition:_attachment
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5f3df3
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
jmp 0x5f3e7d
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x5f3e8f
cmp dword [ebx + 0x2c], 0
jne 0x5f3e72
test al, 1
je 0x5f3e87
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.005f4990
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5f3df3
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x5f3eb8
push eax
push str._r_nContent_Type:__s
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5f3df3
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x5f3eec
nop
push dword [esi]
lea eax, [esp + 0x18]
push str._r_n_s
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5f3df3
mov esi, dword [esi + 4]
test esi, esi
jne 0x5f3ec0
jmp 0x5f3ef4
test edi, edi
jne 0x5f3df3
push str._r_n_r_n
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5f3df3
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x5f3f9c
test al, 0x10
je 0x5f3f45
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.005f36d0
add esp, 0x14
mov edi, eax
jmp 0x5f412a
test al, 0x40
je 0x5f3f8f
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0xb264b8]
add esp, 4
test eax, eax
jne 0x5f3f66
lea edi, [eax + 0x1b]
jmp 0x5f412a
mov ecx, dword [esp + 0x10]
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x5f3f84
mov dword [ecx], eax
add dword [esp + 0x14], edi
xor edi, edi
jmp 0x5f412a
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
jmp 0x5f3f2f
push dword [ebp + 0xc]
push 0x6b8e04
call fcn.005e8370
add esp, 8
test eax, eax
je 0x5f3fba
mov esi, dword [sym.imp.MSVCRT.dll___p__iob]
call esi
jmp 0x5f3fd1
push 0x6b4aec
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, dword [sym.imp.MSVCRT.dll___p__iob]
add esp, 8
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x5f415e
call esi
push ebx
cmp ebx, eax
je 0x5f407c
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [ebp + 0xc]
push 0x10
call dword [0xb264b8]
mov esi, eax
add esp, 8
test esi, esi
jne 0x5f400c
lea edi, [eax + 0x1b]
jmp 0x5f4123
mov eax, dword [esp + 0x10]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [esp + 0x10], esi
test eax, eax
je 0x5f402a
mov dword [eax], esi
push dword [esi + 8]
push 0x6b8e04
call fcn.005e8370
add esp, 8
test eax, eax
jne 0x5f406b
lea eax, [esp + 0x30]
push eax
push dword [esi + 8]
call dword [0xb27454]
add esp, 8
test eax, eax
jne 0x5f4072
mov eax, dword [esp + 0x36]
and eax, 0xf000
cmp eax, 0x4000
je 0x5f4072
mov eax, dword [esp + 0x48]
add dword [esp + 0x14], eax
xor edi, edi
jmp 0x5f4123
mov edi, 0x2b
jmp 0x5f4123
push 0x200
lea eax, [esp + 0x68]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5f411f
mov ebx, dword [esp + 0x10]
xor edi, edi
push 0x10
call dword [0xb264b8]
mov esi, eax
add esp, 4
test esi, esi
je 0x5f4157
lea eax, [ebp + 1]
mov dword [esi], edi
push eax
call dword [0xb264b8]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x5f414d
push ebp
lea ecx, [esp + 0x64]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [esi + 0xc], ebp
mov byte [eax + ebp], 0
mov dword [esi + 4], 1
test ebx, ebx
je 0x5f40f6
mov dword [ebx], esi
push dword [esp + 0x24]
add dword [esp + 0x18], ebp
lea eax, [esp + 0x64]
push 0x200
push 1
mov ebx, esi
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x5f40a1
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x26c]
mov esi, dword [esp + 0x268]
mov ebp, dword [ebp + 0x24]
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x5f4195
test edi, edi
jne 0x5f3df3
mov esi, dword [esp + 0x1c]
jmp 0x5f3e30
push esi
call dword [0xb264bc]
add esp, 4
mov edi, 0x1b
jmp 0x5f411f
mov esi, dword [esp + 0x264]
test esi, esi
je 0x5f417a
push dword [ebp + 0xc]
push str.couldnt_open_file___s_
push esi
call fcn.005dd6e0
add esp, 0xc
mov esi, dword [esp + 0x268]
mov edi, 0x1a
mov ebx, dword [esp + 0x26c]
mov dword [esi], 0
jmp 0x5f4131
mov ebp, dword [esp + 0x1c]
test edi, edi
jne 0x5f3df7
cmp dword [ebx + 0x24], edi
je 0x5f41c8
push ebp
push str._r_n___s__
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5f3df7
mov ebx, dword [ebx]
mov dword [esp + 0x26c], ebx
test ebx, ebx
je 0x5f41e8
mov edi, dword [esp + 0x18]
jmp 0x5f3ce0
mov edi, 0x1b
jmp 0x5f3df3
test edi, edi
jne 0x5f3df7
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005f37f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5f3dfb
mov ecx, dword [esp + 0x274]
mov eax, dword [esp + 0x14]
push ebp
mov dword [ecx], eax
call dword [0xb264bc]
push ebx
call dword [0xb264bc]
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret