Function at 0x1009a3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x214], ebx
mov dword [ecx], ebx
cmp eax, ebx
je 0x1009a9b0
call fcn.1009a3c0
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x1009a474
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1009a47d
mov edi, str.Content_Type:_multipart_form_data
push eax
push edi
push str._s__boundary_s_r_n
push 0
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009a4bd
mov eax, dword [ebp - 0x21c]
push eax
call dword [0x101e8004]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x228], ecx
lea esp, [esp]
or ebx, dword [ebp - 0x20c]
je 0x1009a4fc
lea edx, [ebp - 0x210]
push 0x101888a8
push edx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009a932
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x210]
push str.___s_r_n
push ecx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a932
lea edx, [ebp - 0x210]
push str.Content_Disposition:_form_data__name_
push edx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009a932
mov ebx, dword [ebp - 0x220]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
push eax
lea ecx, [ebp - 0x208]
push esi
push ecx
lea ecx, [ebp - 0x210]
call fcn.10099e50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a932
lea edx, [ebp - 0x210]
push 0x101d5874
push edx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009a932
cmp dword [ebx + 0x24], eax
je 0x1009a5f1
mov eax, dword [ebp - 0x214]
push eax
call dword [0x101e8004]
mov esi, dword [ebp - 0x224]
add esp, 4
call fcn.1009a3c0
mov edi, eax
mov dword [ebp - 0x214], edi
test edi, edi
je 0x1009a900
push edi
lea ecx, [ebp - 0x210]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push ecx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a938
mov edi, ebx
mov dword [ebp - 0x218], edi
lea esp, [esp]
cmp dword [ebx + 0x24], 0
je 0x1009a643
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a932
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x208]
push edx
mov eax, edi
jmp 0x1009a664
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x1009a676
cmp dword [ebx + 0x2c], 0
jne 0x1009a654
test al, 1
je 0x1009a66e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov eax, ebx
call fcn.1009a130
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009a932
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1009a6a2
push eax
lea edx, [ebp - 0x210]
push str._r_nContent_Type:__s
push edx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a932
mov edi, dword [edi + 0x20]
test edi, edi
je 0x1009a6e0
lea esp, [esp]
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x210]
push str._r_n_s
push ecx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a932
mov edi, dword [edi + 4]
test edi, edi
jne 0x1009a6b0
jmp 0x1009a6e8
test esi, esi
jne 0x1009a932
lea edx, [ebp - 0x210]
push str._r_n_r_n
push edx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1009a932
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x1009a78a
test al, 0x10
je 0x1009a73c
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
push eax
lea ecx, [ebp - 0x208]
push 1
push ecx
lea ecx, [ebp - 0x210]
call fcn.10099e50
add esp, 0xc
mov esi, eax
jmp 0x1009a862
test al, 0x40
je 0x1009a765
mov edx, dword [ebx + 0x10]
push edx
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x208]
push 2
push eax
lea ecx, [ebp - 0x210]
call fcn.10099e50
add esp, 0xc
mov esi, eax
jmp 0x1009a862
mov ecx, dword [ebx + 0x10]
push ecx
lea edx, [ebp - 0x208]
push 1
push edx
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x210]
call fcn.10099e50
add esp, 0xc
mov esi, eax
jmp 0x1009a862
mov edi, dword [ebp - 0x218]
mov eax, dword [edi + 0xc]
push eax
push 0x101dafc4
call fcn.100a8b10
add esp, 8
test eax, eax
je 0x1009a7ad
call dword [sym.imp.MSVCR100.dll___iob_func]
jmp 0x1009a7bf
mov ecx, dword [edi + 0xc]
push 0x101887a4
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x1009a884
call dword [sym.imp.MSVCR100.dll___iob_func]
push edi
cmp edi, eax
je 0x1009a800
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 0x218]
push 0
lea edx, [ebp - 0x208]
push 3
push edx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x210]
call fcn.10099e50
add esp, 0x10
mov esi, eax
jmp 0x1009a862
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push 0x200
lea ecx, [ebp - 0x204]
push 1
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x1009a85c
lea ecx, [ecx]
push eax
lea edx, [ebp - 0x208]
push 1
push edx
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x204]
call fcn.10099e50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a85c
push edi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call ebx
add esp, 0x10
test eax, eax
jne 0x1009a820
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x218]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x1009a8b9
test esi, esi
jne 0x1009a932
mov edi, eax
jmp 0x1009a600
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1009a8a6
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx + 0xc]
push edx
push str.couldnt_open_file___s_
push eax
call fcn.100a5ac0
add esp, 0xc
mov eax, dword [ebp - 0x22c]
mov dword [eax], 0
mov esi, 0x1a
jmp 0x1009a862
test esi, esi
jne 0x1009a932
cmp dword [ebx + 0x24], esi
je 0x1009a8e9
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push str._r_n___s__
push eax
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009a932
mov eax, dword [ebx]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1009a907
mov ebx, dword [ebp - 0x210]
jmp 0x1009a4d0
mov esi, 0x1b
jmp 0x1009a938
test esi, esi
jne 0x1009a932
mov ecx, dword [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x210]
push str._r_n___s___r_n
push edx
lea esi, [ebp - 0x208]
call fcn.10099fa0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1009a96e
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x228]
push eax
call fcn.1009a000
push edi
call dword [0x101e8004]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [0x101e8004]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x20c]
mov dword [eax], edx
mov edx, dword [ebp - 0x214]
push edx
mov dword [eax + 4], ecx
call dword [0x101e8004]
mov eax, dword [ebp - 0x21c]
push eax
call dword [0x101e8004]
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x22c]
add esp, 8
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1017eae7
mov esp, ebp
pop ebp
ret