Function at 0x100099e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10062400]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x214], 0
movlpd qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x224], 0
mov dword [edx], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x10009fda
mov ecx, eax
call fcn.1000a190
mov edi, eax
mov dword [ebp - 0x210], edi
test edi, edi
jne 0x10009a67
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003bca3
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 - 0x214]
push 0
push eax
call fcn.10009660
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10009aac
push edi
call dword [0x1006341c]
mov eax, esi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003bca3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov edi, edi
mov eax, dword [ebp - 0x21c]
or eax, dword [ebp - 0x218]
je 0x10009af9
push 0x1005710c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10009f38
mov edi, dword [ebp - 0x210]
push edi
push str.___s_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f38
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10009f38
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x214]
cdq
push edx
push eax
push dword [ebx + 4]
lea edx, [edi + 1]
call fcn.10009460
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f38
push 0x10057140
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10009f38
cmp dword [ebx + 0x24], eax
je 0x10009be7
push dword [ebp - 0x224]
call dword [0x1006341c]
mov ecx, dword [ebp - 0x22c]
add esp, 4
call fcn.1000a190
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10009f33
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f38
mov esi, ebx
mov dword [ebp - 0x220], esi
nop
cmp dword [ebx + 0x24], 0
je 0x10009c25
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f38
mov ecx, esi
jmp 0x10009c38
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x10009c57
cmp dword [ebx + 0x2c], 0
jne 0x10009c36
test al, 1
je 0x10009c4f
mov ecx, ebx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x214]
call fcn.10009910
mov edi, eax
add esp, 4
test edi, edi
jne 0x10009f38
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10009c84
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f38
mov esi, dword [esi + 0x20]
test esi, esi
je 0x10009cc0
jmp 0x10009c90
push dword [esi]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f38
mov esi, dword [esi + 4]
test esi, esi
jne 0x10009c90
jmp 0x10009cc8
test edi, edi
jne 0x10009f38
push str._r_n_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10009f38
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x10009d7e
test al, 0x10
je 0x10009d0e
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebx + 0x18]
cdq
push edx
push eax
push dword [ebx + 0x14]
jmp 0x10009d64
test al, 0x40
je 0x10009d48
test al, al
jns 0x10009d1e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x10009d22
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
push dword [ebx + 0x30]
mov edx, 3
lea ecx, [ebp - 0x214]
call fcn.10009460
add esp, 0x10
mov edi, eax
jmp 0x10009ed3
test al, al
jns 0x10009d54
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x10009d58
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
push dword [ebx + 0xc]
mov edx, 2
lea ecx, [ebp - 0x214]
call fcn.10009460
add esp, 0x10
mov edi, eax
jmp 0x10009ed3
mov esi, dword [ebp - 0x220]
mov eax, 0x10056b7c
mov esi, dword [esi + 0xc]
mov ecx, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10009db0
test dl, dl
je 0x10009dac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10009db0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10009d90
xor eax, eax
jmp 0x10009db5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10009dc0
call fcn.1003cc5b
jmp 0x10009dce
push 0x100571c0
push esi
call fcn.1003d39e
add esp, 8
mov esi, eax
test esi, esi
je 0x10009ea1
call fcn.1003cc5b
push esi
cmp esi, eax
je 0x10009e18
call fcn.1003d563
add esp, 4
lea eax, [ebp - 0x21c]
mov edx, 4
lea ecx, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x220]
push 0
push 0
push dword [eax + 0xc]
call fcn.10009460
add esp, 0x10
mov edi, eax
jmp 0x10009ed3
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1003ea1c
add esp, 0x10
test eax, eax
je 0x10009ed3
jmp 0x10009e40
lea ecx, [ebp - 0x21c]
mov edx, 2
push ecx
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.10009460
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009ed3
push esi
call fcn.1003e7c5
add esp, 4
test eax, eax
jne 0x10009ed3
push esi
call fcn.1003e7eb
add esp, 4
test eax, eax
jne 0x10009ed3
push esi
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1003ea1c
add esp, 0x10
test eax, eax
jne 0x10009e40
jmp 0x10009ed3
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x10009ec2
mov eax, dword [ebp - 0x220]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push ecx
call fcn.10023060
add esp, 0xc
mov eax, dword [ebp - 0x228]
mov edi, 0x1a
mov dword [eax], 0
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x10009ef1
test edi, edi
jne 0x10009f38
mov esi, eax
jmp 0x10009bf0
test edi, edi
jne 0x10009f38
mov esi, dword [ebp - 0x224]
cmp dword [ebx + 0x24], edi
je 0x10009f22
push esi
push str._r_n___s__
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f38
mov ebx, dword [ebx]
test ebx, ebx
je 0x10009f75
mov edi, dword [ebp - 0x210]
jmp 0x10009ac0
mov edi, 0x1b
mov ebx, dword [ebp - 0x210]
lea ecx, [ebp - 0x230]
call fcn.100096c0
push dword [ebp - 0x224]
call dword [0x1006341c]
add esp, 4
push ebx
call dword [0x1006341c]
mov eax, edi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003bca3
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x10009f38
mov ebx, dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10009660
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009f3e
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x21c]
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
call dword [0x1006341c]
add esp, 4
push ebx
call dword [0x1006341c]
mov eax, dword [ebp - 0x228]
add esp, 4
mov ecx, dword [ebp - 0x234]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bca3
mov esp, ebp
pop ebp
ret