Function at 0x52e905
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
mov edx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x22c], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x224], ecx
mov dword [eax], ecx
test edi, edi
jne 0x52e961
xor eax, eax
jmp 0x52ed97
call fcn.0052ef90
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x52e978
push 0x1b
pop eax
jmp 0x52ed97
push eax
test ebx, ebx
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, ebx
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0052e80d
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x52e9b3
push dword [ebp - 0x210]
call dword [0x5cdc40]
mov eax, ebx
jmp 0x52ed96
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
or esi, dword [ebp - 0x218]
je 0x52e9f2
push 0x593584
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52ed6a
push dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push str.___s_r_n
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52ed6a
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52ed6a
lea eax, [ebp - 0x21c]
xor edx, edx
push eax
push dword [edi + 8]
lea ecx, [ebp - 0x214]
push dword [edi + 4]
call fcn.0052e70f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52ed6a
push 0x5918e0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52ed6a
cmp dword [edi + 0x24], eax
je 0x52eae0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x52eaa5
push eax
call dword [0x5cdc40]
pop ecx
call fcn.0052ef90
mov ebx, eax
mov dword [ebp - 0x224], ebx
test ebx, ebx
je 0x52edea
push ebx
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.0052e80d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52ed6a
mov eax, edi
mov dword [ebp - 0x220], edi
cmp dword [edi + 0x24], 0
je 0x52eb3b
xor ebx, ebx
cmp dword [eax + 0x2c], ebx
jne 0x52eb0d
mov ecx, dword [eax + 0xc]
call fcn.0052e8d5
mov ebx, eax
test ebx, ebx
je 0x52ee5f
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0x2c], 0
mov ecx, ebx
cmovne ecx, dword [eax + 0x2c]
lea eax, [ebp - 0x21c]
push ecx
push dword [ebp - 0x224]
push str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
add esp, 0x14
jmp 0x52eb86
test byte [edi + 0x28], 0x51
je 0x52eb9c
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x52eb5e
test byte [edi + 0x28], 1
je 0x52eb94
test eax, eax
jne 0x52eb5e
mov ecx, dword [edi + 0xc]
call fcn.0052e8d5
mov ebx, eax
jmp 0x52eb60
xor ebx, ebx
cmp dword [edi + 0x2c], 0
mov eax, ebx
cmovne eax, dword [edi + 0x2c]
push eax
push str.__filename__s_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
add esp, 0x10
mov esi, eax
test ebx, ebx
je 0x52eb94
push ebx
call dword [0x5cdc40]
pop ecx
test esi, esi
jne 0x52ed6a
mov ebx, dword [ebp - 0x220]
cmp dword [ebx + 0x1c], 0
je 0x52ebd0
push dword [ebx + 0x1c]
lea eax, [ebp - 0x21c]
push str._r_nContent_Type:__s
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52ed6a
mov ebx, dword [ebx + 0x20]
jmp 0x52ebff
push dword [ebx]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52ed6a
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x52ebd5
test esi, esi
jne 0x52ed6a
push str._r_n_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52ed6a
test byte [edi + 0x28], 3
jne 0x52ec77
test byte [edi + 0x28], 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x214]
push eax
je 0x52ec51
push dword [edi + 0x18]
push dword [edi + 0x14]
jmp 0x52ec65
test byte [edi + 0x28], 0x40
push dword [edi + 0x10]
je 0x52ec62
push dword [edi + 0x30]
push 2
pop edx
jmp 0x52ec68
push dword [edi + 0xc]
xor edx, edx
inc edx
call fcn.0052e70f
add esp, 0xc
mov esi, eax
jmp 0x52ed4f
mov ebx, dword [ebp - 0x220]
push dword [ebx + 0xc]
push 0x5985e0
call dword [sym.imp.MSVCR120.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x52ec99
call dword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x52eca9
push 0x5a3fc8
push dword [ebx + 0xc]
call dword [sym.imp.MSVCR120.dll_fopen]
pop ecx
pop ecx
mov ebx, eax
test ebx, ebx
je 0x52ed22
call dword [sym.imp.MSVCR120.dll___iob_func]
push ebx
cmp ebx, eax
je 0x52ed05
call dword [sym.imp.MSVCR120.dll_fclose]
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
pop ecx
push eax
push 0
push dword [ebx + 0xc]
lea ecx, [ebp - 0x214]
push 3
pop edx
jmp 0x52ec68
lea ecx, [ebp - 0x21c]
xor edx, edx
push ecx
push eax
lea eax, [ebp - 0x20c]
inc edx
push eax
lea ecx, [ebp - 0x214]
call fcn.0052e70f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52ed4f
push ebx
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
jne 0x52ecde
jmp 0x52ed4f
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x52ed43
mov ebx, dword [ebp - 0x220]
push dword [ebx + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.005129bc
add esp, 0xc
mov eax, dword [ebp - 0x228]
push 0x1a
pop esi
and dword [eax], 0
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x52eda8
test esi, esi
je 0x52eae8
mov edi, dword [ebp - 0x210]
lea ecx, [ebp - 0x234]
call fcn.0052e866
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x52ed8d
push eax
call dword [0x5cdc40]
pop ecx
push edi
call dword [0x5cdc40]
mov eax, esi
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x52ed6a
mov ebx, dword [ebp - 0x224]
cmp dword [edi + 0x24], esi
je 0x52edd9
push ebx
push str._r_n___s__
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52ed6a
mov edi, dword [edi]
test edi, edi
je 0x52eded
mov esi, dword [ebp - 0x21c]
jmp 0x52e9c5
push 0x1b
pop esi
test esi, esi
jne 0x52ed6a
mov edi, dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push edi
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052e80d
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52ed70
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x21c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x52ee44
push ebx
call dword [0x5cdc40]
pop ecx
push edi
call dword [0x5cdc40]
mov eax, dword [ebp - 0x228]
pop ecx
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
jmp 0x52e95a
push 0x1b
pop esi
jmp 0x52ed6a