Function at 0x52cc33
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5c31c8]
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 0x52cc8f
xor eax, eax
jmp 0x52d0c5
call fcn.0052d2be
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x52cca6
push 0x1b
pop eax
jmp 0x52d0c5
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.0052cb3b
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x52cce1
push dword [ebp - 0x210]
call dword [0x5c6c40]
mov eax, ebx
jmp 0x52d0c4
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
or esi, dword [ebp - 0x218]
je 0x52cd20
push 0x58fdd4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52d098
push dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push str.___s_r_n
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52d098
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52d098
lea eax, [ebp - 0x21c]
xor edx, edx
push eax
push dword [edi + 8]
lea ecx, [ebp - 0x214]
push dword [edi + 4]
call fcn.0052ca3d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52d098
push 0x58e130
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52d098
cmp dword [edi + 0x24], eax
je 0x52ce0e
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x52cdd3
push eax
call dword [0x5c6c40]
pop ecx
call fcn.0052d2be
mov ebx, eax
mov dword [ebp - 0x224], ebx
test ebx, ebx
je 0x52d118
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.0052cb3b
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52d098
mov eax, edi
mov dword [ebp - 0x220], edi
cmp dword [edi + 0x24], 0
je 0x52ce69
xor ebx, ebx
cmp dword [eax + 0x2c], ebx
jne 0x52ce3b
mov ecx, dword [eax + 0xc]
call fcn.0052cc03
mov ebx, eax
test ebx, ebx
je 0x52d18d
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.0052cb3b
add esp, 0x14
jmp 0x52ceb4
test byte [edi + 0x28], 0x51
je 0x52ceca
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x52ce8c
test byte [edi + 0x28], 1
je 0x52cec2
test eax, eax
jne 0x52ce8c
mov ecx, dword [edi + 0xc]
call fcn.0052cc03
mov ebx, eax
jmp 0x52ce8e
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.0052cb3b
add esp, 0x10
mov esi, eax
test ebx, ebx
je 0x52cec2
push ebx
call dword [0x5c6c40]
pop ecx
test esi, esi
jne 0x52d098
mov ebx, dword [ebp - 0x220]
cmp dword [ebx + 0x1c], 0
je 0x52cefe
push dword [ebx + 0x1c]
lea eax, [ebp - 0x21c]
push str._r_nContent_Type:__s
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52d098
mov ebx, dword [ebx + 0x20]
jmp 0x52cf2d
push dword [ebx]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52d098
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x52cf03
test esi, esi
jne 0x52d098
push str._r_n_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52d098
test byte [edi + 0x28], 3
jne 0x52cfa5
test byte [edi + 0x28], 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x214]
push eax
je 0x52cf7f
push dword [edi + 0x18]
push dword [edi + 0x14]
jmp 0x52cf93
test byte [edi + 0x28], 0x40
push dword [edi + 0x10]
je 0x52cf90
push dword [edi + 0x30]
push 2
pop edx
jmp 0x52cf96
push dword [edi + 0xc]
xor edx, edx
inc edx
call fcn.0052ca3d
add esp, 0xc
mov esi, eax
jmp 0x52d07d
mov ebx, dword [ebp - 0x220]
push dword [ebx + 0xc]
push 0x594e60
call dword [sym.imp.MSVCR120.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x52cfc7
call dword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x52cfd7
push 0x5a07fc
push dword [ebx + 0xc]
call dword [sym.imp.MSVCR120.dll_fopen]
pop ecx
pop ecx
mov ebx, eax
test ebx, ebx
je 0x52d050
call dword [sym.imp.MSVCR120.dll___iob_func]
push ebx
cmp ebx, eax
je 0x52d033
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 0x52cf96
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.0052ca3d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x52d07d
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 0x52d00c
jmp 0x52d07d
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x52d071
mov ebx, dword [ebp - 0x220]
push dword [ebx + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.00510cc2
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 0x52d0d6
test esi, esi
je 0x52ce16
mov edi, dword [ebp - 0x210]
lea ecx, [ebp - 0x234]
call fcn.0052cb94
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x52d0bb
push eax
call dword [0x5c6c40]
pop ecx
push edi
call dword [0x5c6c40]
mov eax, esi
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x52d098
mov ebx, dword [ebp - 0x224]
cmp dword [edi + 0x24], esi
je 0x52d107
push ebx
push str._r_n___s__
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0052cb3b
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52d098
mov edi, dword [edi]
test edi, edi
je 0x52d11b
mov esi, dword [ebp - 0x21c]
jmp 0x52ccf3
push 0x1b
pop esi
test esi, esi
jne 0x52d098
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.0052cb3b
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x52d09e
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 0x52d172
push ebx
call dword [0x5c6c40]
pop ecx
push edi
call dword [0x5c6c40]
mov eax, dword [ebp - 0x228]
pop ecx
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
jmp 0x52cc88
push 0x1b
pop esi
jmp 0x52d098