Function at 0x4d60e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x52e030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x218], edi
mov dword [eax], edi
cmp ebx, edi
je 0x4d66b4
call fcn.004d6070
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x4d6164
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475360
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4d616d
mov esi, str.Content_Type:_multipart_form_data
push eax
push esi
push str._s__boundary_s_r_n
push 0
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d6648
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x220], eax
lea ebx, [ebx]
or edi, dword [ebp - 0x20c]
je 0x4d61cc
lea ecx, [ebp - 0x210]
push 0x50c6e8
push ecx
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d6625
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [ebp - 0x210]
push str.___s_r_n
push eax
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6625
lea ecx, [ebp - 0x210]
push str.Content_Disposition:_form_data__name_
push ecx
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d6625
mov edx, dword [ebx + 8]
push edx
mov edx, dword [ebx + 4]
push eax
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x210]
call fcn.004d5bf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6625
lea ecx, [ebp - 0x210]
push 0x509730
push ecx
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d6625
cmp dword [ebx + 0x24], eax
je 0x4d62c0
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4d627f
push eax
call dword [0x52fd8c]
add esp, 4
call fcn.004d6070
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4d65f3
push eax
lea edx, [ebp - 0x210]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push edx
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6625
jmp 0x4d62c0
mov edx, dword [ebp - 0x214]
cmp dword [edx + 0x24], 0
je 0x4d6312
xor edi, edi
cmp dword [ebx + 0x2c], edi
jne 0x4d62e5
mov eax, dword [ebx + 0xc]
call fcn.004d5e90
mov edi, eax
test edi, edi
je 0x4d65f3
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x4d62ee
mov eax, edi
push eax
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x210]
push str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
push ecx
lea esi, [ebp - 0x208]
call fcn.004d5d20
add esp, 0x10
jmp 0x4d6362
mov ecx, dword [edx + 0x28]
test cl, 0x51
je 0x4d637a
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x4d633c
test cl, 1
je 0x4d6372
test eax, eax
jne 0x4d633c
mov eax, dword [edx + 0xc]
call fcn.004d5e90
mov edx, dword [ebp - 0x214]
mov edi, eax
jmp 0x4d633e
xor edi, edi
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x4d6347
mov eax, edi
push eax
lea edx, [ebp - 0x210]
push str.__filename__s_
push edx
lea esi, [ebp - 0x208]
call fcn.004d5d20
add esp, 0xc
mov esi, eax
test edi, edi
je 0x4d6372
push edi
call dword [0x52fd8c]
add esp, 4
test esi, esi
jne 0x4d6625
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4d63a6
push eax
lea eax, [ebp - 0x210]
push str._r_nContent_Type:__s
push eax
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6625
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x4d63e0
lea ecx, [ecx]
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x210]
push str._r_n_s
push edx
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6625
mov edi, dword [edi + 4]
test edi, edi
jne 0x4d63b0
jmp 0x4d63e8
test esi, esi
jne 0x4d6625
lea eax, [ebp - 0x210]
push str._r_n_r_n
push eax
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d6625
mov edi, dword [ebp - 0x214]
mov eax, dword [edi + 0x28]
test al, 3
jne 0x4d6490
test al, 0x10
je 0x4d6442
mov ecx, dword [edi + 0x18]
push ecx
lea edx, [ebp - 0x208]
push 1
push edx
mov edx, dword [edi + 0x14]
lea ecx, [ebp - 0x210]
call fcn.004d5bf0
add esp, 0xc
mov esi, eax
jmp 0x4d6595
test al, 0x40
je 0x4d646b
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x30]
push eax
lea ecx, [ebp - 0x208]
push 2
push ecx
lea ecx, [ebp - 0x210]
call fcn.004d5bf0
add esp, 0xc
mov esi, eax
jmp 0x4d6595
mov edx, dword [edi + 0x10]
push edx
mov edx, dword [edi + 0xc]
lea eax, [ebp - 0x208]
push 1
push eax
lea ecx, [ebp - 0x210]
call fcn.004d5bf0
add esp, 0xc
mov esi, eax
jmp 0x4d6595
mov ecx, dword [ebx + 0xc]
push ecx
push 0x50a5c4
call fcn.004d1020
add esp, 8
test eax, eax
je 0x4d64ad
call dword [sym.imp.MSVCR100.dll___iob_func]
jmp 0x4d64bf
mov edx, dword [ebx + 0xc]
push 0x50c6ec
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x4d6562
call dword [sym.imp.MSVCR100.dll___iob_func]
push edi
cmp edi, eax
je 0x4d64fd
call dword [sym.imp.MSVCR100.dll_fclose]
mov edx, dword [ebx + 0xc]
push 0
lea eax, [ebp - 0x208]
push 3
push eax
lea ecx, [ebp - 0x210]
call fcn.004d5bf0
add esp, 0x10
mov esi, eax
jmp 0x4d658f
push 0x200
lea ecx, [ebp - 0x204]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x4d658f
jmp 0x4d6520
push eax
lea edx, [ebp - 0x208]
push 1
push edx
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x204]
call fcn.004d5bf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d658f
push edi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4d6520
jmp 0x4d658f
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4d657e
mov ecx, dword [ebx + 0xc]
push ecx
push str.couldnt_open_file___s_
push eax
call fcn.004b6c40
add esp, 0xc
mov edx, dword [ebp - 0x224]
mov dword [edx], 0
mov esi, 0x1a
mov edi, dword [ebp - 0x214]
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x4d65a6
test esi, esi
je 0x4d62c0
jmp 0x4d6625
test esi, esi
jne 0x4d6625
cmp dword [edi + 0x24], esi
je 0x4d65d6
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x210]
push str._r_n___s__
push ecx
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6625
mov edi, dword [edi]
mov dword [ebp - 0x214], edi
test edi, edi
je 0x4d65fa
mov edi, dword [ebp - 0x210]
mov ebx, dword [ebp - 0x214]
jmp 0x4d61a0
mov esi, 0x1b
jmp 0x4d6625
test esi, esi
jne 0x4d6625
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [ebp - 0x210]
push str._r_n___s___r_n
push eax
lea esi, [ebp - 0x208]
call fcn.004d5d20
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4d666b
lea ecx, [ebp - 0x220]
push ecx
call fcn.004d5d80
mov eax, dword [ebp - 0x218]
add esp, 4
test eax, eax
je 0x4d6648
push eax
call dword [0x52fd8c]
add esp, 4
mov edx, dword [ebp - 0x21c]
push edx
call dword [0x52fd8c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475360
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x20c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4d6696
push eax
call dword [0x52fd8c]
add esp, 4
mov eax, dword [ebp - 0x21c]
push eax
call dword [0x52fd8c]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
add esp, 4
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00475360
mov esp, ebp
pop ebp
ret