Function at 0x50bf30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x628960]
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 0x50bfa7
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push edi
call fcn.0050bd50
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
jne 0x50bfcd
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
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.0050bcf0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x50c612
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x270], eax
jmp 0x50c010
mov eax, dword [ebp - 0x248]
or eax, dword [ebp - 0x244]
je 0x50c043
push 0x60ed80
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050bcf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50c5ef
push edi
push str.___s_r_n
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050bcf0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50c5ef
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050bcf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50c5ef
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 8]
lea eax, [ebp - 0x240]
push dword [ebx + 4]
push esi
push eax
call fcn.0050bba0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x50c5ef
push str._:.._
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050bcf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50c5ef
cmp dword [ebx + 0x24], eax
je 0x50c12c
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x50c0f3
push eax
call dword [0x629b48]
add esp, 4
call fcn.0050bd50
mov dword [ebp - 0x254], eax
test eax, eax
je 0x50c55b
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.0050bcf0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50c5ef
mov edi, ebx
mov dword [ebp - 0x25c], edi
cmp dword [ebx + 0x24], 0
je 0x50c176
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.0050bcf0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50c5e9
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
jmp 0x50c196
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x50c1a8
cmp dword [ebx + 0x2c], 0
jne 0x50c187
test al, 1
je 0x50c1a0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
push ebx
call fcn.0050c630
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50c5e9
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x50c1d5
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050bcf0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50c5e9
mov edi, dword [edi + 0x20]
test edi, edi
je 0x50c210
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.0050bcf0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50c5e9
mov edi, dword [edi + 4]
test edi, edi
jne 0x50c1e0
jmp 0x50c218
test esi, esi
jne 0x50c5e9
push 0x60ee68
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050bcf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50c5e9
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x50c2d7
test al, 0x10
je 0x50c25b
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
jmp 0x50c2bf
test al, 0x40
je 0x50c2b2
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0x629b44]
add esp, 4
test eax, eax
jne 0x50c27c
lea esi, [eax + 0x1b]
jmp 0x50c4e9
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 0x50c29e
mov dword [ecx], eax
add dword [ebp - 0x248], edi
adc dword [ebp - 0x244], 0
xor esi, esi
jmp 0x50c4e9
lea eax, [ebp - 0x248]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
lea eax, [ebp - 0x240]
push 1
push eax
call fcn.0050bba0
add esp, 0x14
mov esi, eax
jmp 0x50c4e9
mov edi, dword [ebp - 0x25c]
push dword [edi + 0xc]
push 0x60ef3c
call fcn.004f4a60
add esp, 8
test eax, eax
je 0x50c300
call fcn.004a16f8
mov ebx, eax
mov dword [ebp - 0x264], ebx
jmp 0x50c318
push 0x60e39c
push dword [edi + 0xc]
call fcn.004d7928
add esp, 8
mov dword [ebp - 0x264], eax
mov ebx, eax
test ebx, ebx
je 0x50c4b7
call fcn.004a16f8
push ebx
cmp ebx, eax
je 0x50c3d8
call fcn.004a229f
mov edi, dword [edi + 0xc]
push 0x10
call dword [0x629b44]
mov esi, eax
add esp, 8
test esi, esi
jne 0x50c351
mov esi, 0x1b
jmp 0x50c4e3
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 0x50c373
mov dword [eax], esi
push dword [esi + 8]
push 0x60ef3c
call fcn.004f4a60
add esp, 8
test eax, eax
jne 0x50c3c7
lea eax, [ebp - 0x23c]
push eax
push dword [esi + 8]
call fcn.004d9b06
add esp, 8
test eax, eax
jne 0x50c3ce
mov eax, dword [ebp - 0x236]
and eax, 0xf000
cmp eax, 0x4000
je 0x50c3ce
mov eax, dword [ebp - 0x224]
add dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x220]
adc dword [ebp - 0x244], eax
xor esi, esi
jmp 0x50c4e3
mov esi, 0x2b
jmp 0x50c4e3
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.004d9fe9
add esp, 0x10
mov dword [ebp - 0x258], eax
test eax, eax
je 0x50c4e3
mov ebx, dword [ebp - 0x240]
xor esi, esi
push 0x10
call dword [0x629b44]
mov edi, eax
add esp, 4
test edi, edi
je 0x50c347
mov ecx, dword [ebp - 0x258]
inc ecx
mov dword [edi], esi
push ecx
call dword [0x629b44]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x50c4a6
push dword [ebp - 0x258]
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.004abb00
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 0x50c466
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.004d9fe9
add esp, 0x10
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x50c404
jmp 0x50c4e3
push edi
call dword [0x629b48]
add esp, 4
mov esi, 0x1b
jmp 0x50c4e3
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x50c4d2
push dword [edi + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.004eb740
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 0x50c50b
test esi, esi
jne 0x50c5e9
mov edi, eax
jmp 0x50c134
test esi, esi
jne 0x50c5e9
mov edi, dword [ebp - 0x254]
cmp dword [ebx + 0x24], esi
je 0x50c544
push edi
push str._r_n___s__
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0050bcf0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50c5e9
mov ebx, dword [ebx]
mov dword [ebp - 0x250], ebx
test ebx, ebx
je 0x50c565
mov edi, dword [ebp - 0x24c]
jmp 0x50c010
mov esi, 0x1b
jmp 0x50c5ef
test esi, esi
jne 0x50c5e9
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.0050bcf0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x50c5e5
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 0x50c5ba
push edi
call dword [0x629b48]
add esp, 4
push ebx
call dword [0x629b48]
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.004a0676
mov esp, ebp
pop ebp
ret
mov edi, ebx
jmp 0x50c5ef
mov edi, dword [ebp - 0x24c]
lea eax, [ebp - 0x270]
push eax
call fcn.0050bec0
mov eax, dword [ebp - 0x254]
add esp, 4
test eax, eax
je 0x50c612
push eax
call dword [0x629b48]
add esp, 4
push edi
call dword [0x629b48]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret