Function at 0x4d2070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x2b8], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], 0
movlpd qword [ebp - 0x2ac], xmm0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2b4], edi
mov dword [ebp - 0x2bc], ecx
test ebx, ebx
je 0x4d269a
lea edx, [ebp - 0x60]
mov ecx, edi
call fcn.004d2880
test eax, eax
jne 0x4d26bf
lea eax, [ebp - 0x60]
test esi, esi
push eax
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, esi
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.004d1ec0
add esp, 0x14
test eax, eax
jne 0x4d26bf
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2c4], eax
nop dword [eax]
mov eax, dword [ebp - 0x2ac]
or eax, dword [ebp - 0x2a8]
je 0x4d2153
push 0x793b64
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d26b2
lea eax, [ebp - 0x60]
push eax
push str.___s_r_n
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d26b2
mov eax, dword [ebx + 8]
cdq
test edx, edx
jl 0x4d26ad
jg 0x4d21b7
test eax, eax
jb 0x4d26ad
lea ecx, [ebp - 0x2ac]
push ecx
push edx
push eax
push dword [ebx + 4]
mov edx, 1
lea ecx, [ebp - 0x2a0]
call fcn.004d1d00
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
push 0x79a458
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d26b2
cmp dword [ebx + 0x24], eax
je 0x4d2247
lea edx, [ebp - 0x34]
mov ecx, edi
call fcn.004d2880
mov esi, eax
test esi, esi
jne 0x4d26b2
lea eax, [ebp - 0x34]
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
mov edi, ebx
mov dword [ebp - 0x2b0], ebx
nop
cmp dword [ebx + 0x24], 0
je 0x4d2283
lea eax, [ebp - 0x34]
push eax
push str._r_n___s_r_nContent_Disposition:_attachment
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
mov ecx, edi
jmp 0x4d2296
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x4d22b5
cmp dword [ebx + 0x2c], 0
jne 0x4d2294
test al, 1
je 0x4d22ad
mov ecx, ebx
lea eax, [ebp - 0x2ac]
push eax
lea edx, [ebp - 0x2a0]
call fcn.004d1f50
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d26b2
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4d22e2
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
mov edi, dword [edi + 0x20]
test edi, edi
je 0x4d2320
nop dword [eax]
push dword [edi]
lea eax, [ebp - 0x2ac]
push str._r_n_s
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
mov edi, dword [edi + 4]
test edi, edi
jne 0x4d22f0
jmp 0x4d2328
test esi, esi
jne 0x4d26b2
push str._r_n_r_n
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d26b2
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x4d2414
test al, 0x10
je 0x4d2380
mov eax, dword [ebx + 0x18]
cdq
test edx, edx
jl 0x4d252f
jg 0x4d2372
test eax, eax
jb 0x4d252f
lea ecx, [ebp - 0x2ac]
push ecx
push edx
push eax
push dword [ebx + 0x14]
jmp 0x4d23fa
test al, 0x40
je 0x4d23cc
test al, al
jns 0x4d2390
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x4d2394
mov eax, dword [ebx + 0x10]
cdq
test edx, edx
jl 0x4d252f
jg 0x4d23a6
test eax, eax
jb 0x4d252f
lea ecx, [ebp - 0x2ac]
push ecx
push edx
push eax
push dword [ebx + 0x30]
mov edx, 3
lea ecx, [ebp - 0x2a0]
call fcn.004d1d00
add esp, 0x10
mov esi, eax
jmp 0x4d25f3
test al, al
jns 0x4d23d8
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x4d23dc
mov eax, dword [ebx + 0x10]
cdq
test edx, edx
jl 0x4d252f
jg 0x4d23ee
test eax, eax
jb 0x4d252f
lea ecx, [ebp - 0x2ac]
push ecx
push edx
push eax
push dword [ebx + 0xc]
mov edx, 2
lea ecx, [ebp - 0x2a0]
call fcn.004d1d00
add esp, 0x10
mov esi, eax
jmp 0x4d25f3
mov edi, dword [ebp - 0x2b0]
push dword [edi + 0xc]
push 0x793c40
call fcn.006e5280
add esp, 8
test eax, eax
jne 0x4d2439
push eax
call fcn.006e4958
add esp, 4
jmp 0x4d2449
push 0x793d74
push dword [edi + 0xc]
call fcn.006e5218
add esp, 8
mov edi, eax
test edi, edi
je 0x4d25c1
push 0
call fcn.006e4958
add esp, 4
push edi
cmp edi, eax
je 0x4d2539
call fcn.006e4d89
mov eax, dword [ebp - 0x2b0]
add esp, 4
cmp dword [ebp - 0x2a8], 0
mov edi, dword [eax + 0xc]
jl 0x4d252f
jg 0x4d2493
cmp dword [ebp - 0x2ac], 0
jb 0x4d252f
push 0x10
call fcn.006d77d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d24ab
lea esi, [eax + 0x1b]
jmp 0x4d25f3
push edi
push 0x793c40
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 4
call fcn.006e5280
add esp, 8
test eax, eax
je 0x4d250d
lea eax, [ebp - 0x29c]
push eax
push dword [esi + 8]
call fcn.006ed58d
add esp, 8
test eax, eax
jne 0x4d2526
mov eax, dword [ebp - 0x296]
and eax, 0xf000
cmp eax, 0x4000
je 0x4d2526
mov eax, dword [ebp - 0x284]
add dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x280]
adc dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x4d2519
mov dword [eax], esi
mov dword [ebp - 0x2a0], esi
xor esi, esi
jmp 0x4d25f3
push esi
call fcn.006d6340
add esp, 4
mov esi, 0x2b
jmp 0x4d25f3
push 0x200
lea eax, [ebp - 0x264]
push 1
push eax
call fcn.006eb820
add esp, 0x10
test eax, eax
je 0x4d25f3
nop word [eax + eax]
lea ecx, [ebp - 0x2ac]
mov edx, 2
push ecx
push 0
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004d1d00
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d25f3
push edi
call fcn.006ed5a3
add esp, 4
test eax, eax
jne 0x4d25f3
push edi
call fcn.006ed5cf
add esp, 4
test eax, eax
jne 0x4d25f3
push edi
push 0x200
lea eax, [ebp - 0x264]
push 1
push eax
call fcn.006eb820
add esp, 0x10
test eax, eax
jne 0x4d2560
jmp 0x4d25f3
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
je 0x4d25e2
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push ecx
call fcn.004aef10
add esp, 0xc
mov eax, dword [ebp - 0x2b8]
mov esi, 0x1a
mov dword [eax], 0
mov edi, dword [ebp - 0x2b0]
mov edi, dword [edi + 0x24]
mov dword [ebp - 0x2b0], edi
test esi, esi
jne 0x4d26b2
test edi, edi
jne 0x4d2250
cmp dword [ebx + 0x24], esi
je 0x4d263c
lea eax, [ebp - 0x34]
push eax
push str._r_n___s__
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
mov ebx, dword [ebx]
mov edi, dword [ebp - 0x2b4]
test ebx, ebx
jne 0x4d2120
test esi, esi
jne 0x4d26b2
lea eax, [ebp - 0x60]
push eax
push str._r_n___s___r_n
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004d1ec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4d26b2
mov ecx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2ac]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2c0]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov esi, 0x2b
lea ecx, [ebp - 0x2c4]
call fcn.004d1f10
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret