Function at 0x4580cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
cmp ebx, edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x230], edi
mov dword [eax], edi
jne 0x45811a
xor eax, eax
jmp 0x458597
call fcn.0045869e
cmp eax, edi
mov dword [ebp - 0x220], eax
jne 0x458130
push 0x1b
jmp 0x458596
push eax
push str.Content_Type:_multipart_form_data__boundary_s_r_n
push edi
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45815f
push dword [ebp - 0x220]
call dword [0x4d2014]
pop ecx
mov eax, esi
jmp 0x458597
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x228], eax
or edi, dword [ebp - 0x218]
je 0x458196
lea eax, [ebp - 0x21c]
push 0x4bb4e0
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x458502
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push str.___s_r_n
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458502
lea eax, [ebp - 0x21c]
push str.Content_Disposition:_form_data__name_
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x458502
lea eax, [ebp - 0x21c]
push eax
push dword [ebx + 4]
mov eax, dword [ebx + 8]
push esi
lea ecx, [ebp - 0x210]
call fcn.00457f27
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458502
lea eax, [ebp - 0x21c]
push 0x4b9468
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x458502
cmp dword [ebx + 0x24], eax
je 0x458261
call fcn.0045869e
push eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x21c]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458502
mov dword [ebp - 0x224], ebx
xor edi, edi
cmp dword [ebx + 0x24], edi
je 0x4582b6
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0x2c], edi
jne 0x458284
push dword [eax + 0xc]
call fcn.0045809b
pop ecx
mov edi, eax
mov eax, dword [ebp - 0x224]
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x458293
mov eax, edi
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
add esp, 0x10
jmp 0x4582f0
test byte [ebx + 0x28], 0x11
je 0x458306
cmp dword [ebx + 0x2c], edi
jne 0x4582cc
push dword [ebx + 0xc]
call fcn.0045809b
pop ecx
mov edi, eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x4582d5
mov eax, edi
push eax
lea eax, [ebp - 0x21c]
push str.__filename__s_
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
add esp, 0xc
test edi, edi
mov esi, eax
je 0x4582fe
push edi
call dword [0x4d2014]
pop ecx
test esi, esi
jne 0x458502
mov eax, dword [ebp - 0x224]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x458338
push eax
lea eax, [ebp - 0x21c]
push str._r_nContent_Type:__s
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458502
mov eax, dword [ebp - 0x224]
mov edi, dword [eax + 0x20]
jmp 0x45836c
push dword [edi]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458502
mov edi, dword [edi + 4]
test edi, edi
jne 0x458343
test esi, esi
jne 0x458502
lea eax, [ebp - 0x21c]
push str._r_n_r_n
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x458502
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x4583c5
test al, 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x210]
push eax
je 0x4583bd
push dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
push 0
jmp 0x45842f
push dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
jmp 0x4583b9
mov edi, dword [ebp - 0x224]
push dword [edi + 0xc]
push 0x4bb604
call fcn.0044cc30
test eax, eax
pop ecx
pop ecx
je 0x4583e5
call fcn.0048b69e
jmp 0x4583f4
push 0x4bee3c
push dword [edi + 0xc]
call fcn.004806b9
pop ecx
pop ecx
test eax, eax
mov dword [ebp - 0x22c], eax
je 0x458573
call fcn.0048b69e
cmp dword [ebp - 0x22c], eax
push dword [ebp - 0x22c]
je 0x45843b
call fcn.00480d35
pop ecx
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 0xc]
xor eax, eax
push 1
lea ecx, [ebp - 0x210]
call fcn.00457f27
add esp, 0xc
mov esi, eax
jmp 0x45849a
mov edi, 0x200
push edi
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0048351a
add esp, 0x10
test eax, eax
je 0x45849e
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
lea ecx, [ebp - 0x210]
call fcn.00457f27
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458502
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push edi
push 1
push eax
call fcn.0048351a
add esp, 0x10
test eax, eax
jne 0x458456
test esi, esi
jne 0x458502
mov eax, dword [ebp - 0x224]
mov eax, dword [eax + 0x24]
test eax, eax
mov dword [ebp - 0x224], eax
jne 0x458267
test esi, esi
jne 0x458502
cmp dword [ebx + 0x24], esi
je 0x4584f1
push dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push str._r_n___s__
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
add esp, 0xc
push dword [ebp - 0x230]
mov esi, eax
call dword [0x4d2014]
test esi, esi
pop ecx
jne 0x458502
mov ebx, dword [ebx]
test ebx, ebx
je 0x458512
mov edi, dword [ebp - 0x21c]
jmp 0x45816b
mov eax, dword [ebp - 0x228]
call fcn.0045803c
jmp 0x45814b
test esi, esi
jne 0x458502
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push str._r_n___s___r_n
push eax
lea esi, [ebp - 0x210]
call fcn.00457fe9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458502
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x21c]
push dword [ebp - 0x220]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x218]
mov dword [eax + 4], ecx
call dword [0x4d2014]
mov eax, dword [ebp - 0x228]
pop ecx
mov ecx, dword [ebp - 0x234]
mov dword [ecx], eax
jmp 0x458113
mov eax, dword [ebp - 0x228]
call fcn.0045803c
push dword [ebp - 0x220]
call dword [0x4d2014]
mov eax, dword [ebp - 0x234]
and dword [eax], 0
pop ecx
push 0x1a
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b9fe
leave
ret