Function at 0x1000a710
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [esp + 0x224]
push ebx
mov ebx, dword [esp + 0x22c]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [eax], edi
je 0x1000ac47
mov ecx, dword [esp + 0x230]
push ecx
call fcn.1000b200
mov ebp, eax
add esp, 4
cmp ebp, edi
mov dword [esp + 0x24], ebp
jne 0x1000a76e
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x23c]
cmp eax, edi
jne 0x1000a77e
mov eax, str.Content_Type:_multipart_form_data
push ebp
push eax
push str._s__boundary_s_r_n
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.1000ae70
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1000a7b0
push ebp
call dword [0x1003c8cc]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
or ecx, eax
je 0x1000a7e5
lea edx, [esp + 0x14]
push 0x1003cbc4
lea eax, [esp + 0x14]
push edx
push eax
call fcn.1000ae70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000abe1
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push str.___s_r_n
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000ae70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000abe1
lea ecx, [esp + 0x14]
push str.Content_Disposition:_form_data__name_
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.1000ae70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000abe1
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
cdq
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push 1
push edx
call fcn.1000ac60
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1000abe1
lea eax, [esp + 0x14]
push 0x1003cb90
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.1000ae70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000abe1
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1000a8c1
push edi
call dword [0x1003c8cc]
mov edx, dword [esp + 0x234]
push edx
call fcn.1000b200
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x1000abb4
push eax
lea eax, [esp + 0x18]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000ae70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000abe1
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1000a915
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push edx
push str._r_n___s_r_nContent_Disposition:_attachment
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000ae70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000abe1
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push ebp
call fcn.1000aec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000abe1
jmp 0x1000a948
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x1000a944
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x1000a927
test al, 1
je 0x1000a93c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
call fcn.1000aec0
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x1000abe1
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1000a971
push eax
lea eax, [esp + 0x18]
push str._r_nContent_Type:__s
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000ae70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000abe1
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x1000a9a5
mov edx, dword [edi]
lea eax, [esp + 0x14]
push edx
push str._r_n_s
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000ae70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000abe1
mov edi, dword [edi + 4]
test edi, edi
jne 0x1000a978
jmp 0x1000a9ad
test esi, esi
jne 0x1000abe1
lea edx, [esp + 0x14]
push str._r_n_r_n
lea eax, [esp + 0x14]
push edx
push eax
call fcn.1000ae70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000abe1
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x1000aa47
test al, 0x10
je 0x1000a9fe
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x14]
cdq
push ecx
push edx
mov edx, dword [ebx + 0x14]
push eax
push edx
push 2
lea eax, [esp + 0x24]
push eax
call fcn.1000ac60
add esp, 0x18
mov esi, eax
jmp 0x1000ab64
test al, 0x40
je 0x1000aa21
test al, 0x80
je 0x1000aa0e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x1000aa12
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [ebx + 0x30]
push eax
push edx
push 3
jmp 0x1000a9ea
test al, 0x80
je 0x1000aa37
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [ebx + 0xc]
push eax
jmp 0x1000a9e7
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x14]
cdq
push ecx
push edx
mov edx, dword [ebx + 0xc]
push eax
jmp 0x1000a9e7
mov ebp, dword [ebp + 0xc]
mov eax, 0x1003c544
mov edi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x1000aa75
test cl, cl
je 0x1000aa71
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x1000aa75
add eax, 2
add edi, 2
test cl, cl
jne 0x1000aa51
xor eax, eax
jmp 0x1000aa7a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000aa86
mov edi, dword [sym.imp.MSVCRT.dll__iob]
jmp 0x1000aa97
push 0x1003cb10
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x1000ab31
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edi
cmp edi, eax
je 0x1000aad6
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0
mov edx, dword [ecx + 0xc]
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
call fcn.1000ac60
add esp, 0x1c
mov esi, eax
jmp 0x1000ab64
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push 0x200
lea ecx, [esp + 0x34]
push 1
push ecx
call ebp
add esp, 0x10
test eax, eax
je 0x1000ab64
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
push 0
push eax
lea eax, [esp + 0x38]
push eax
push 2
push ecx
call fcn.1000ac60
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1000ab64
test byte [edi + 0xc], 0x30
jne 0x1000ab64
push edi
push 0x200
lea edx, [esp + 0x34]
push 1
push edx
call ebp
add esp, 0x10
test eax, eax
jne 0x1000aaf1
jmp 0x1000ab64
mov eax, dword [esp + 0x230]
test eax, eax
je 0x1000ab52
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
push edx
push str.couldnt_open_file___s_
push eax
call fcn.10024430
add esp, 0xc
mov eax, dword [esp + 0x234]
mov esi, 0x1a
mov dword [eax], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x1000ab7c
test esi, esi
jne 0x1000abe1
jmp 0x1000a8c5
test esi, esi
jne 0x1000abe1
mov eax, dword [ebx + 0x24]
mov edi, dword [esp + 0x20]
test eax, eax
je 0x1000aba9
push edi
lea edx, [esp + 0x18]
push str._r_n___s__
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000ae70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000abe1
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000abbb
jmp 0x1000a7b8
mov esi, 0x1b
jmp 0x1000abe1
test esi, esi
jne 0x1000abe1
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push str._r_n___s___r_n
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000ae70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ac11
lea ecx, [esp + 0x28]
push ecx
call fcn.1000a530
mov edx, dword [esp + 0x24]
push edx
call dword [0x1003c8cc]
mov eax, dword [esp + 0x2c]
push eax
call dword [0x1003c8cc]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x240]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edi
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [0x1003c8cc]
mov eax, dword [esp + 0x28]
push eax
call dword [0x1003c8cc]
mov edx, dword [esp + 0x23c]
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [edx], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret