Function at 0x1005a050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x230], eax
xorps xmm0, xmm0
mov dword [ebp - 0x210], 0
movlpd qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x224], 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 - 0x234], ecx
test ebx, ebx
je 0x1005a573
mov ecx, edi
call fcn.1005a770
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x1005a0d9
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100626a1
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.10059e50
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005a5a5
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
jmp 0x1005a120
mov eax, dword [ebp - 0x21c]
or eax, dword [ebp - 0x218]
je 0x1005a153
push 0x101092a8
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005a58b
push dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push str.___s_r_n
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005a58b
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005a58b
lea eax, [ebp - 0x21c]
xor edx, edx
push eax
push dword [ebx + 8]
lea ecx, [ebp - 0x210]
push dword [ebx + 4]
call fcn.10059cf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005a58b
push 0x101089f4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005a58b
cmp dword [ebx + 0x24], eax
je 0x1005a23e
push dword [ebp - 0x224]
call dword [0x10117554]
add esp, 4
mov ecx, edi
call fcn.1005a770
mov dword [ebp - 0x224], eax
test eax, eax
je 0x1005a586
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.10059e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005a58b
mov edi, ebx
mov dword [ebp - 0x228], edi
cmp dword [ebx + 0x24], 0
je 0x1005a27b
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005a58b
mov ecx, edi
jmp 0x1005a28e
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x1005a2ad
cmp dword [ebx + 0x2c], 0
jne 0x1005a28c
test al, 1
je 0x1005a2a5
mov ecx, ebx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x210]
call fcn.10059f70
mov esi, eax
add esp, 4
test esi, esi
jne 0x1005a58b
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1005a2da
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005a58b
mov edi, dword [edi + 0x20]
test edi, edi
je 0x1005a311
push dword [edi]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005a58b
mov edi, dword [edi + 4]
test edi, edi
jne 0x1005a2e1
jmp 0x1005a319
test esi, esi
jne 0x1005a58b
push str._r_n_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005a58b
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x1005a3b4
lea ecx, [ebp - 0x210]
test al, 0x10
je 0x1005a397
lea eax, [ebp - 0x21c]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
mov edx, 1
call fcn.10059cf0
add esp, 0xc
mov esi, eax
mov edi, dword [ebp - 0x220]
mov eax, dword [ebp - 0x228]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x1005a4c3
test esi, esi
jne 0x1005a58b
mov edi, eax
jmp 0x1005a246
test al, 0x40
lea eax, [ebp - 0x21c]
push eax
push dword [ebx + 0x10]
je 0x1005a3af
push dword [ebx + 0x30]
mov edx, 2
jmp 0x1005a361
push dword [ebx + 0xc]
jmp 0x1005a35c
mov edi, dword [ebp - 0x228]
mov ecx, 0x10109dd0
mov edx, dword [edi + 0xc]
call fcn.1004c2f0
test eax, eax
je 0x1005a3d2
call fcn.10065d9b
jmp 0x1005a3e2
push 0x10107a58
push dword [edi + 0xc]
call fcn.10063d47
add esp, 8
mov edi, eax
test edi, edi
je 0x1005a48c
call fcn.10065d9b
push edi
cmp edi, eax
je 0x1005a420
call fcn.10063e0d
add esp, 4
lea eax, [ebp - 0x21c]
mov edx, 3
lea ecx, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x228]
push 0
push dword [eax + 0xc]
jmp 0x1005a361
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.10064049
add esp, 0x10
test eax, eax
je 0x1005a36b
mov edi, edi
lea ecx, [ebp - 0x21c]
mov edx, 1
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.10059cf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005a36b
push edi
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.10064049
add esp, 0x10
test eax, eax
jne 0x1005a440
jmp 0x1005a36b
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x1005a4ad
mov eax, dword [ebp - 0x228]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push edi
call fcn.1003aae0
add esp, 0xc
mov eax, dword [ebp - 0x230]
mov esi, 0x1a
mov dword [eax], 0
jmp 0x1005a371
test esi, esi
jne 0x1005a58b
cmp dword [ebx + 0x24], esi
je 0x1005a4fb
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push str._r_n___s__
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10059e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005a58b
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1005a120
test esi, esi
jne 0x1005a58b
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.10059e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005a58b
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x224]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
call dword [0x10117554]
add esp, 4
push ebx
call dword [0x10117554]
mov eax, dword [ebp - 0x230]
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.100626a1
mov esp, ebp
pop ebp
ret
mov esi, 0x1b
lea ecx, [ebp - 0x238]
call fcn.10059eb0
push dword [ebp - 0x224]
call dword [0x10117554]
add esp, 4
push dword [ebp - 0x22c]
call dword [0x10117554]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100626a1
mov esp, ebp
pop ebp
ret