Function at 0x10052891
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x27c
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x290]
push ebx
mov ebx, dword [esp + 0x284]
push ebp
push esi
mov esi, dword [esp + 0x298]
push edi
mov edi, dword [esp + 0x298]
xor ebp, ebp
xorps xmm0, xmm0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ebp
movlpd qword [esp + 0x14], xmm0
mov dword [eax], ebp
test edi, edi
jne 0x100528f4
xor eax, eax
jmp 0x10052b74
push 0x2a
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.10052d49
add esp, 0xc
test eax, eax
jne 0x10052b74
lea eax, [esp + 0x5c]
push eax
mov eax, str.Content_Type:_multipart_form_data
test esi, esi
cmovne eax, esi
push eax
push str._s__boundary_s_r_n
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.1005272d
add esp, 0x14
test eax, eax
jne 0x10052b74
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x18]
je 0x1005296e
push 0x100820fc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10052b67
lea eax, [esp + 0x5c]
push eax
push str.___s_r_n
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10052b67
push str.Content_Disposition:_form_data__name_
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10052b67
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 8]
cdq
push edx
push eax
push dword [edi + 4]
lea eax, [esp + 0x20]
push 1
push eax
call fcn.10052588
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10052b67
push 0x1008a88c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10052b67
cmp dword [edi + 0x24], ebp
je 0x10052a42
push 0x2a
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.10052d49
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10052b67
lea eax, [esp + 0x30]
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10052b67
mov ebp, edi
cmp dword [edi + 0x24], 0
je 0x10052a7d
lea eax, [esp + 0x30]
push eax
push str._r_n___s_r_nContent_Disposition:_attachment
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10052b67
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
jmp 0x10052a9a
test byte [edi + 0x28], 0x51
je 0x10052aac
cmp dword [edi + 0x2c], 0
jne 0x10052a8f
test byte [edi + 0x28], 1
je 0x10052aa4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.10052d7b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10052b67
cmp dword [ebp + 0x1c], 0
je 0x10052ad6
push dword [ebp + 0x1c]
lea eax, [esp + 0x18]
push str._r_nContent_Type:__s
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10052b67
mov ebx, dword [ebp + 0x20]
jmp 0x10052afd
push dword [ebx]
lea eax, [esp + 0x18]
push str._r_n_s
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10052b67
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x10052adb
test esi, esi
jne 0x10052b67
push str._r_n_r_n
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10052b67
mov eax, dword [edi + 0x28]
test al, 3
jne 0x10052bce
test al, 0x10
je 0x10052b8d
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x18]
cdq
push edx
push eax
push dword [edi + 0x14]
push 2
lea eax, [esp + 0x24]
push eax
call fcn.10052588
add esp, 0x18
mov esi, eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [ebp + 0x24]
test ebp, ebp
je 0x10052cbc
test esi, esi
je 0x10052a44
lea eax, [esp + 0x28]
push eax
call fcn.1005283b
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x27c
ret
test al, 0x40
je 0x10052baf
test al, al
jns 0x10052b9d
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
jmp 0x10052ba1
mov eax, dword [edi + 0x10]
cdq
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push dword [edi + 0x30]
push 3
jmp 0x10052b41
test al, al
jns 0x10052bbb
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
jmp 0x10052bbf
mov eax, dword [edi + 0x10]
cdq
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push dword [edi + 0xc]
jmp 0x10052b3f
mov eax, dword [ebp + 0xc]
push 0x2d
pop ecx
cmp cl, byte [eax]
jne 0x10052be6
xor ecx, ecx
cmp cl, byte [eax + 1]
jne 0x10052be6
call fcn.1005f899
jmp 0x10052bf3
push 0x10081d34
push eax
call fcn.1005fc5b
pop ecx
pop ecx
mov ebx, eax
test ebx, ebx
je 0x10052c94
call fcn.1005f899
push ebx
cmp ebx, eax
je 0x10052c74
call fcn.1005f9e1
lea eax, [esp + 0x18]
push eax
push 0
push 0
push dword [ebp + 0xc]
lea eax, [esp + 0x24]
push 4
push eax
call fcn.10052588
add esp, 0x1c
jmp 0x10052b4e
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x20]
push 2
push eax
call fcn.10052588
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10052b50
push ebx
call fcn.1006204d
pop ecx
test eax, eax
jne 0x10052b50
push ebx
call fcn.10062073
pop ecx
test eax, eax
jne 0x10052b50
push ebx
push 0x200
lea eax, [esp + 0x90]
push 1
push eax
call fcn.10060ae0
add esp, 0x10
test eax, eax
jne 0x10052c2c
jmp 0x10052b50
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x10052cad
push dword [ebp + 0xc]
push str.couldnt_open_file___s_
push ebx
call fcn.10034609
add esp, 0xc
mov eax, dword [esp + 0x20]
push 0x1a
and dword [eax], 0
pop esi
jmp 0x10052b54
test esi, esi
jne 0x10052b67
xor ebp, ebp
cmp dword [edi + 0x24], ebp
je 0x10052cf1
lea eax, [esp + 0x30]
push eax
push str._r_n___s__
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10052b67
mov edi, dword [edi]
test edi, edi
jne 0x10052943
test esi, esi
jne 0x10052b67
lea eax, [esp + 0x5c]
push eax
push str._r_n___s___r_n
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005272d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10052b67
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
jmp 0x100528ed