Function at 0x10009c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10055130]
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 - 0x220], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x214], edi
mov dword [eax], edi
cmp ebx, edi
je 0x1000a254
call fcn.10009c00
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x10009cce
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10009cd7
mov esi, str.Content_Type:_multipart_form_data
push eax
push esi
push str._s__boundary_s_r_n
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.10009810
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10009d18
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [0x100550dc]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
or edi, dword [ebp - 0x20c]
je 0x10009d51
push 0x1004a03c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.10009810
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000a1d6
mov edx, dword [ebp - 0x21c]
push edx
push str.___s_r_n
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.10009810
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000a1d6
push str.Content_Disposition:_form_data__name_
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.10009810
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000a1d6
mov eax, dword [ebx + 8]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
lea edx, [ebp - 0x208]
push 1
push edx
call fcn.10009600
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1000a1d6
push 0x1004a008
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.10009810
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000a1d6
cmp dword [ebx + 0x24], eax
je 0x10009e48
mov edx, dword [ebp - 0x214]
push edx
call dword [0x100550dc]
mov ecx, dword [ebp - 0x220]
add esp, 4
call fcn.10009c00
mov edi, eax
mov dword [ebp - 0x214], edi
test edi, edi
je 0x1000a1a3
push edi
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.10009810
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000a1dc
mov edi, ebx
mov dword [ebp - 0x218], edi
cmp dword [ebx + 0x24], 0
je 0x10009e94
mov edx, dword [ebp - 0x214]
push edx
push str._r_n___s_r_nContent_Disposition:_attachment
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.10009810
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000a1d6
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x208]
push edx
push eax
mov eax, edi
jmp 0x10009eb5
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x10009ec7
cmp dword [ebx + 0x2c], 0
jne 0x10009ea5
test al, 1
je 0x10009ebf
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x208]
push edx
mov eax, ebx
call fcn.10009990
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000a1d6
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x10009ef4
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.10009810
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000a1d6
mov edi, dword [edi + 0x20]
test edi, edi
je 0x10009f31
jmp 0x10009f00
mov edx, dword [edi]
push edx
push str._r_n_s
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.10009810
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000a1d6
mov edi, dword [edi + 4]
test edi, edi
jne 0x10009f00
jmp 0x10009f39
test esi, esi
jne 0x1000a1d6
push str._r_n_r_n
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.10009810
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000a1d6
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x1000a001
test al, 0x10
je 0x10009f95
mov eax, dword [ebx + 0x18]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 0x14]
push edx
push eax
lea edx, [ebp - 0x208]
push 2
push edx
call fcn.10009600
add esp, 0x14
mov esi, eax
jmp 0x1000a143
test al, 0x40
je 0x10009fcd
test al, al
jns 0x10009fa5
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x10009fa9
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 0x30]
push edx
push eax
lea edx, [ebp - 0x208]
push 3
push edx
call fcn.10009600
add esp, 0x14
mov esi, eax
jmp 0x1000a143
test al, al
jns 0x10009fd9
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x10009fdd
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
push eax
lea edx, [ebp - 0x208]
push 2
push edx
call fcn.10009600
add esp, 0x14
mov esi, eax
jmp 0x1000a143
mov eax, dword [ebp - 0x218]
mov edi, dword [eax + 0xc]
mov ecx, edi
mov eax, 0x10049980
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000a031
test dl, dl
je 0x1000a02d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000a031
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000a011
xor eax, eax
jmp 0x1000a036
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000a041
call fcn.10037df2
jmp 0x1000a04f
push 0x10049f34
push edi
call fcn.10037ddb
add esp, 8
mov edi, eax
test edi, edi
je 0x1000a110
call fcn.10037df2
push edi
cmp edi, eax
je 0x1000a094
call fcn.10037ba5
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [eax + 0xc]
push 0
push 0
lea edx, [ebp - 0x208]
push 4
push edx
call fcn.10009600
add esp, 0x18
mov esi, eax
jmp 0x1000a143
push 0x200
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.10039ac8
add esp, 0x10
test eax, eax
je 0x1000a143
lea edx, [ebp - 0x210]
push edx
push 0
push eax
lea eax, [ebp - 0x208]
push 2
push eax
lea ecx, [ebp - 0x204]
call fcn.10009600
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1000a143
push edi
call fcn.10039ae5
add esp, 4
test eax, eax
jne 0x1000a143
push edi
call fcn.10039b0d
add esp, 4
test eax, eax
jne 0x1000a143
push edi
push 0x200
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.10039ac8
add esp, 0x10
test eax, eax
jne 0x1000a0b2
jmp 0x1000a143
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1000a132
mov edx, dword [ebp - 0x218]
mov ecx, dword [edx + 0xc]
push ecx
push str.couldnt_open_file___s_
push eax
call fcn.10023390
add esp, 0xc
mov edx, dword [ebp - 0x228]
mov dword [edx], 0
mov esi, 0x1a
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x1000a161
test esi, esi
jne 0x1000a1d6
mov edi, eax
jmp 0x10009e50
test esi, esi
jne 0x1000a1d6
cmp dword [ebx + 0x24], esi
je 0x1000a192
mov ecx, dword [ebp - 0x214]
push ecx
push str._r_n___s__
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.10009810
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000a1d6
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000a1aa
mov edi, dword [ebp - 0x210]
jmp 0x10009d24
mov esi, 0x1b
jmp 0x1000a1dc
test esi, esi
jne 0x1000a1d6
mov ecx, dword [ebp - 0x21c]
push ecx
push str._r_n___s___r_n
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.10009810
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a212
mov edi, dword [ebp - 0x214]
lea ecx, [ebp - 0x224]
push ecx
call fcn.10009860
push edi
call dword [0x100550dc]
mov edx, dword [ebp - 0x21c]
push edx
call dword [0x100550dc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x20c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x214]
push eax
call dword [0x100550dc]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [0x100550dc]
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
add esp, 8
mov dword [eax], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10036a9a
mov esp, ebp
pop ebp
ret