Function at 0x4d8c45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [eax], ebx
cmp edi, ebx
je 0x4d9143
push ecx
call fcn.004d8c1f
pop ecx
mov dword [ebp - 0x220], eax
cmp eax, ebx
jne 0x4d8cb9
push 0x1b
pop eax
jmp 0x4d9145
cmp esi, ebx
jne 0x4d8cc2
mov esi, str.Content_Type:_multipart_form_data
push eax
push esi
push str._s__boundary_s_r_n
xor ebx, ebx
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4d8cf3
push dword [ebp - 0x220]
call dword [0x54704c]
pop ecx
mov eax, esi
jmp 0x4d9145
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x210]
or eax, dword [ebp - 0x20c]
je 0x4d8d2e
push 0x5275ac
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
test esi, esi
jne 0x4d90cf
push dword [ebp - 0x220]
lea ebx, [ebp - 0x210]
push str.___s_r_n
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d90cf
push str.Content_Disposition:_form_data__name_
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
test esi, esi
jne 0x4d90cf
push dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004d87ed
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d90cf
push str.__:___
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
test esi, esi
jne 0x4d90cf
cmp dword [edi + 0x24], eax
je 0x4d8e03
cmp dword [ebp - 0x218], eax
je 0x4d8dc6
push dword [ebp - 0x218]
call dword [0x54704c]
pop ecx
push dword [ebp - 0x224]
call fcn.004d8c1f
pop ecx
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4d90a4
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d90cf
mov dword [ebp - 0x21c], edi
cmp dword [edi + 0x24], 0
je 0x4d8e49
push dword [ebp - 0x218]
lea ebx, [ebp - 0x210]
push str._r_n___s_r_nContent_Disposition:_attachment
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d90cf
mov eax, ebx
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x21c]
jmp 0x4d8e6a
mov eax, dword [edi + 0x28]
test al, 0x51
je 0x4d8e7b
cmp dword [edi + 0x2c], 0
jne 0x4d8e5a
test al, 1
je 0x4d8e73
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, edi
call fcn.004d89e2
pop ecx
mov esi, eax
pop ecx
test esi, esi
jne 0x4d90cf
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4d8eab
push eax
push str._r_nContent_Type:__s
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d90cf
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4d8efd
jmp 0x4d8ec6
mov eax, dword [ebp - 0x214]
push dword [eax]
lea ebx, [ebp - 0x210]
push str._r_n_s
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d90cf
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 4]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x4d8ec0
test esi, esi
jne 0x4d90cf
push str._r_n_r_n
lea ebx, [ebp - 0x210]
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
test esi, esi
jne 0x4d90cf
mov eax, dword [edi + 0x28]
test al, 3
jne 0x4d8f66
test al, 0x10
je 0x4d8f4d
push dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.004d87ed
add esp, 0xc
jmp 0x4d8fd7
mov ecx, dword [edi + 0x10]
test al, 0x40
lea eax, [ebp - 0x208]
je 0x4d8f61
push dword [edi + 0x30]
push 2
jmp 0x4d8f3f
push dword [edi + 0xc]
jmp 0x4d8f3d
mov ebx, dword [ebp - 0x21c]
push dword [ebx + 0xc]
push 0x5193c0
call fcn.004d5c2f
pop ecx
pop ecx
test eax, eax
je 0x4d8f86
call fcn.004e56f4
jmp 0x4d8f95
push 0x50f828
push dword [ebx + 0xc]
call fcn.004e3347
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4d9023
call fcn.004e56f4
push dword [ebp - 0x214]
cmp dword [ebp - 0x214], eax
je 0x4d9007
call fcn.004df509
push dword [ebx + 0xc]
lea eax, [ebp - 0x208]
push 3
push eax
lea ebx, [ebp - 0x210]
xor ecx, ecx
call fcn.004d87ed
add esp, 0x10
mov esi, eax
jmp 0x4d904e
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x208]
push 1
push ecx
lea ebx, [ebp - 0x210]
mov ecx, eax
call fcn.004d87ed
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d904e
push dword [ebp - 0x214]
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.004df7c7
add esp, 0x10
test eax, eax
jne 0x4d8fdb
jmp 0x4d904e
cmp dword [ebp - 0x224], 0
je 0x4d9042
push dword [ebx + 0xc]
push str.couldnt_open_file___s_
push dword [ebp - 0x224]
call fcn.004ba6cb
add esp, 0xc
mov eax, dword [ebp - 0x22c]
and dword [eax], 0
push 0x1a
pop esi
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4d906b
test esi, esi
je 0x4d8e09
jmp 0x4d90cf
test esi, esi
jne 0x4d90cf
cmp dword [edi + 0x24], esi
je 0x4d9098
push dword [ebp - 0x218]
lea ebx, [ebp - 0x210]
push str._r_n___s__
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d90cf
mov edi, dword [edi]
test edi, edi
jne 0x4d8cff
jmp 0x4d90a7
push 0x1b
pop esi
test esi, esi
jne 0x4d90cf
push dword [ebp - 0x220]
lea ebx, [ebp - 0x210]
push str._r_n___s___r_n
lea esi, [ebp - 0x208]
call fcn.004d88f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d90fb
lea eax, [ebp - 0x228]
push eax
call fcn.004d8940
cmp dword [ebp - 0x218], 0
pop ecx
je 0x4d8cdf
push dword [ebp - 0x218]
call dword [0x54704c]
pop ecx
jmp 0x4d8cdf
cmp dword [ebp - 0x218], 0
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x230]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [eax + 4], ecx
je 0x4d9128
push dword [ebp - 0x218]
call dword [0x54704c]
pop ecx
push dword [ebp - 0x220]
call dword [0x54704c]
mov eax, dword [ebp - 0x228]
pop ecx
mov ecx, dword [ebp - 0x22c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret