Function at 0x50cfb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x240], 0
movlpd qword [ebp - 0x248], xmm0
mov dword [ebp - 0x254], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0x14]
test ebx, ebx
jne 0x50d027
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push edi
call fcn.0050cdd0
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
jne 0x50d04d
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push edi
test esi, esi
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, esi
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x50d692
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x270], eax
jmp 0x50d090
mov eax, dword [ebp - 0x248]
or eax, dword [ebp - 0x244]
je 0x50d0c3
push 0x60fcb8
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50d66f
push edi
push str.___s_r_n
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50d66f
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50d66f
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 8]
lea eax, [ebp - 0x240]
push dword [ebx + 4]
push esi
push eax
call fcn.0050cc20
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x50d66f
push str._:.._
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50d66f
cmp dword [ebx + 0x24], eax
je 0x50d1ac
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x50d173
push eax
call dword [0x62ab38]
add esp, 4
call fcn.0050cdd0
mov dword [ebp - 0x254], eax
test eax, eax
je 0x50d5db
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50d66f
mov edi, ebx
mov dword [ebp - 0x25c], edi
cmp dword [ebx + 0x24], 0
je 0x50d1f6
push dword [ebp - 0x254]
lea eax, [ebp - 0x248]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50d669
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
jmp 0x50d216
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x50d228
cmp dword [ebx + 0x2c], 0
jne 0x50d207
test al, 1
je 0x50d220
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
push ebx
call fcn.0050d6b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50d669
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x50d255
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50d669
mov edi, dword [edi + 0x20]
test edi, edi
je 0x50d290
lea esp, [esp]
push dword [edi]
lea eax, [ebp - 0x248]
push str._r_n_s
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50d669
mov edi, dword [edi + 4]
test edi, edi
jne 0x50d260
jmp 0x50d298
test esi, esi
jne 0x50d669
push 0x60fda0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50d669
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x50d357
test al, 0x10
je 0x50d2db
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
jmp 0x50d33f
test al, 0x40
je 0x50d332
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0x62ab34]
add esp, 4
test eax, eax
jne 0x50d2fc
lea esi, [eax + 0x1b]
jmp 0x50d569
mov ecx, dword [ebp - 0x240]
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [ebp - 0x240], eax
test ecx, ecx
je 0x50d31e
mov dword [ecx], eax
add dword [ebp - 0x248], edi
adc dword [ebp - 0x244], 0
xor esi, esi
jmp 0x50d569
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
lea eax, [ebp - 0x240]
push 1
push eax
call fcn.0050cc20
add esp, 0x14
mov esi, eax
jmp 0x50d569
mov edi, dword [ebp - 0x25c]
push dword [edi + 0xc]
push 0x60fe74
call fcn.004f5ac0
add esp, 8
test eax, eax
je 0x50d380
call fcn.004a26f6
mov ebx, eax
mov dword [ebp - 0x264], ebx
jmp 0x50d398
push 0x60f2d8
push dword [edi + 0xc]
call fcn.004d89da
add esp, 8
mov dword [ebp - 0x264], eax
mov ebx, eax
test ebx, ebx
je 0x50d537
call fcn.004a26f6
push ebx
cmp ebx, eax
je 0x50d458
call fcn.004a329d
mov edi, dword [edi + 0xc]
push 0x10
call dword [0x62ab34]
mov esi, eax
add esp, 8
test esi, esi
jne 0x50d3d1
mov esi, 0x1b
jmp 0x50d563
mov eax, dword [ebp - 0x240]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [ebp - 0x240], esi
test eax, eax
je 0x50d3f3
mov dword [eax], esi
push dword [esi + 8]
push 0x60fe74
call fcn.004f5ac0
add esp, 8
test eax, eax
jne 0x50d447
lea eax, [ebp - 0x23c]
push eax
push dword [esi + 8]
call fcn.004dabc6
add esp, 8
test eax, eax
jne 0x50d44e
mov eax, dword [ebp - 0x236]
and eax, 0xf000
cmp eax, 0x4000
je 0x50d44e
mov eax, dword [ebp - 0x224]
add dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x220]
adc dword [ebp - 0x244], eax
xor esi, esi
jmp 0x50d563
mov esi, 0x2b
jmp 0x50d563
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.004db0a9
add esp, 0x10
mov dword [ebp - 0x258], eax
test eax, eax
je 0x50d563
mov ebx, dword [ebp - 0x240]
xor esi, esi
push 0x10
call dword [0x62ab34]
mov edi, eax
add esp, 4
test edi, edi
je 0x50d3c7
mov ecx, dword [ebp - 0x258]
inc ecx
mov dword [edi], esi
push ecx
call dword [0x62ab34]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x50d526
push dword [ebp - 0x258]
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.004aca30
mov ecx, dword [ebp - 0x258]
add esp, 0xc
mov eax, dword [edi + 8]
mov dword [edi + 0xc], ecx
mov byte [ecx + eax], 0
mov dword [edi + 4], 1
test ebx, ebx
je 0x50d4e6
mov dword [ebx], edi
push dword [ebp - 0x264]
add dword [ebp - 0x248], ecx
lea eax, [ebp - 0x204]
push 0x200
adc dword [ebp - 0x244], esi
mov ebx, edi
push 1
push eax
mov dword [ebp - 0x240], ebx
call fcn.004db0a9
add esp, 0x10
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x50d484
jmp 0x50d563
push edi
call dword [0x62ab38]
add esp, 4
mov esi, 0x1b
jmp 0x50d563
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x50d552
push dword [edi + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.004ec7d0
add esp, 0xc
mov eax, dword [ebp - 0x260]
mov esi, 0x1a
mov dword [eax], 0
mov ebx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x50d58b
test esi, esi
jne 0x50d669
mov edi, eax
jmp 0x50d1b4
test esi, esi
jne 0x50d669
mov edi, dword [ebp - 0x254]
cmp dword [ebx + 0x24], esi
je 0x50d5c4
push edi
push str._r_n___s__
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50d669
mov ebx, dword [ebx]
mov dword [ebp - 0x250], ebx
test ebx, ebx
je 0x50d5e5
mov edi, dword [ebp - 0x24c]
jmp 0x50d090
mov esi, 0x1b
jmp 0x50d66f
test esi, esi
jne 0x50d669
mov ebx, dword [ebp - 0x24c]
lea eax, [ebp - 0x248]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050cd70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50d665
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x248]
mov dword [ecx], eax
mov eax, dword [ebp - 0x244]
mov dword [ecx + 4], eax
test edi, edi
je 0x50d63a
push edi
call dword [0x62ab38]
add esp, 4
push ebx
call dword [0x62ab38]
mov eax, dword [ebp - 0x260]
add esp, 4
mov ecx, dword [ebp - 0x268]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
mov edi, ebx
jmp 0x50d66f
mov edi, dword [ebp - 0x24c]
lea eax, [ebp - 0x270]
push eax
call fcn.0050cf40
mov eax, dword [ebp - 0x254]
add esp, 4
test eax, eax
je 0x50d692
push eax
call dword [0x62ab38]
add esp, 4
push edi
call dword [0x62ab38]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret