Function at 0x1005d9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x10211a50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], edi
mov dword [eax], edi
cmp ebx, edi
je 0x1005df49
push 0x2a
push ecx
lea ecx, [ebp - 0x5c]
call fcn.1005d980
add esp, 8
test eax, eax
jne 0x1005df4b
test esi, esi
jne 0x1005da34
mov esi, str.Content_Type:_multipart_form_data
lea eax, [ebp - 0x5c]
push eax
push esi
push str._s__boundary_s_r_n
lea ecx, [ebp - 0x260]
push 0
push ecx
call fcn.1005d600
add esp, 0x14
test eax, eax
jne 0x1005df4b
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x274], edx
jmp 0x1005da76
mov edi, dword [ebp - 0x268]
or edi, dword [ebp - 0x264]
je 0x1005daa3
push 0x101ad0ec
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.1005d600
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005df02
lea edx, [ebp - 0x5c]
push edx
push str.___s_r_n
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.1005d600
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005df02
push str.Content_Disposition:_form_data__name_
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.1005d600
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005df02
mov eax, dword [ebx + 8]
cdq
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
lea edx, [ebp - 0x260]
push 1
push edx
call fcn.1005d3f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005df02
push 0x101c4b70
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.1005d600
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005df02
cmp dword [ebx + 0x24], eax
je 0x1005db8d
mov edx, dword [ebp - 0x278]
push 0x2a
push edx
lea ecx, [ebp - 0x30]
call fcn.1005d980
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005df02
lea eax, [ebp - 0x30]
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.1005d600
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005df02
mov edi, ebx
mov dword [ebp - 0x26c], edi
cmp dword [ebx + 0x24], 0
je 0x1005dbd6
lea eax, [ebp - 0x30]
push eax
push str._r_n___s_r_nContent_Disposition:_attachment
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.1005d600
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005df02
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x260]
push ecx
mov eax, edi
jmp 0x1005dbf7
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x1005dc09
cmp dword [ebx + 0x2c], 0
jne 0x1005dbe7
test al, 1
je 0x1005dc01
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x260]
push edx
push eax
mov eax, ebx
call fcn.1005d710
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005df02
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1005dc36
push eax
push str._r_nContent_Type:__s
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.1005d600
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005df02
mov edi, dword [edi + 0x20]
test edi, edi
je 0x1005dc71
lea ecx, [ecx]
mov eax, dword [edi]
push eax
push str._r_n_s
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.1005d600
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005df02
mov edi, dword [edi + 4]
test edi, edi
jne 0x1005dc40
jmp 0x1005dc79
test esi, esi
jne 0x1005df02
push str._r_n_r_n
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.1005d600
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005df02
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x1005dd41
test al, 0x10
je 0x1005dcd5
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 0x268]
push edx
cdq
push edx
push eax
lea eax, [ebp - 0x260]
push 2
push eax
call fcn.1005d3f0
add esp, 0x14
mov esi, eax
jmp 0x1005de83
test al, 0x40
je 0x1005dd0d
test al, al
jns 0x1005dce5
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x1005dce9
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebx + 0x30]
push edx
push eax
lea edx, [ebp - 0x260]
push 3
push edx
call fcn.1005d3f0
add esp, 0x14
mov esi, eax
jmp 0x1005de83
test al, al
jns 0x1005dd19
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x1005dd1d
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
push eax
lea edx, [ebp - 0x260]
push 2
push edx
call fcn.1005d3f0
add esp, 0x14
mov esi, eax
jmp 0x1005de83
mov eax, dword [ebp - 0x26c]
mov edi, dword [eax + 0xc]
mov ecx, edi
mov eax, 0x101ad7b0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005dd71
test dl, dl
je 0x1005dd6d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005dd71
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005dd51
xor eax, eax
jmp 0x1005dd76
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1005dd81
call fcn.101637ef
jmp 0x1005dd8f
push 0x101ac72c
push edi
call fcn.10164451
add esp, 8
mov edi, eax
test edi, edi
je 0x1005de50
call fcn.101637ef
push edi
cmp edi, eax
je 0x1005ddd4
call fcn.10165890
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [eax + 0xc]
push 0
push 0
lea edx, [ebp - 0x260]
push 4
push edx
call fcn.1005d3f0
add esp, 0x18
mov esi, eax
jmp 0x1005de83
push 0x200
lea ecx, [ebp - 0x25c]
push 1
push ecx
call fcn.10165f68
add esp, 0x10
test eax, eax
je 0x1005de83
lea edx, [ebp - 0x268]
push edx
push 0
push eax
lea eax, [ebp - 0x260]
push 2
push eax
lea ecx, [ebp - 0x25c]
call fcn.1005d3f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005de83
push edi
call fcn.10168faf
add esp, 4
test eax, eax
jne 0x1005de83
push edi
call fcn.10168fd5
add esp, 4
test eax, eax
jne 0x1005de83
push edi
push 0x200
lea ecx, [ebp - 0x25c]
push 1
push ecx
call fcn.10165f68
add esp, 0x10
test eax, eax
jne 0x1005ddf2
jmp 0x1005de83
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x1005de72
mov edx, dword [ebp - 0x26c]
mov ecx, dword [edx + 0xc]
push ecx
push str.couldnt_open_file___s_
push eax
call fcn.10013460
add esp, 0xc
mov edx, dword [ebp - 0x270]
mov dword [edx], 0
mov esi, 0x1a
mov eax, dword [ebp - 0x26c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x1005dea1
test esi, esi
jne 0x1005df02
mov edi, eax
jmp 0x1005db95
test esi, esi
jne 0x1005df02
cmp dword [ebx + 0x24], esi
je 0x1005decf
lea ecx, [ebp - 0x30]
push ecx
push str._r_n___s__
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.1005d600
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005df02
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1005da70
test esi, esi
jne 0x1005df02
lea ecx, [ebp - 0x5c]
push ecx
push str._r_n___s___r_n
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.1005d600
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005df24
lea ecx, [ebp - 0x274]
push ecx
call fcn.1005d650
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x264]
mov dword [eax], edx
mov edx, dword [ebp - 0x274]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x270]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1016177d
mov esp, ebp
pop ebp
ret