Function at 0x468060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4a3350]
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 - 0x24c], xmm0
mov dword [ebp - 0x254], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0x14]
test ebx, ebx
jne 0x4680d7
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret
push edi
call fcn.00467e70
mov edi, eax
mov dword [ebp - 0x244], edi
test edi, edi
jne 0x4680fd
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
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.00467e10
mov esi, eax
add esp, 0x14
test esi, esi
je 0x468142
push edi
call dword [0x4a4754]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x270], eax
jmp 0x468160
mov eax, dword [ebp - 0x24c]
or eax, dword [ebp - 0x248]
je 0x468199
push 0x491ef8
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4686e8
mov edi, dword [ebp - 0x244]
push edi
push str.___s_r_n
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4686e8
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4686e8
lea eax, [ebp - 0x24c]
push eax
push dword [ebx + 8]
lea eax, [ebp - 0x240]
push dword [ebx + 4]
push edi
push eax
call fcn.00467ce0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4686e8
push 0x49c1f8
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4686e8
cmp dword [ebx + 0x24], eax
je 0x468282
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x468249
push eax
call dword [0x4a4754]
add esp, 4
call fcn.00467e70
mov dword [ebp - 0x254], eax
test eax, eax
je 0x468776
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4686e8
mov eax, ebx
mov dword [ebp - 0x258], ebx
lea ebx, [ebx]
cmp dword [ebx + 0x24], 0
je 0x468341
xor esi, esi
cmp dword [eax + 0x2c], esi
jne 0x468313
push dword [eax + 0xc]
call dword [0x4a475c]
mov edi, eax
add esp, 4
test edi, edi
je 0x468776
push 0x2f
push edi
mov esi, edi
call fcn.004275b0
push 0x5c
push edi
mov ebx, eax
call fcn.004275b0
add esp, 0x10
test ebx, ebx
je 0x4682e5
test eax, eax
je 0x4682e0
cmp ebx, eax
mov esi, eax
cmova esi, ebx
inc esi
jmp 0x4682ec
lea esi, [ebx + 1]
jmp 0x4682ec
test eax, eax
je 0x4682ec
lea esi, [eax + 1]
push esi
call dword [0x4a475c]
push edi
mov esi, eax
call dword [0x4a4754]
add esp, 8
test esi, esi
je 0x468776
mov ebx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
mov eax, esi
cmovne eax, ecx
push eax
push dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
push str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
add esp, 0x14
jmp 0x46838e
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x4683a6
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x468366
test al, 1
je 0x46839e
test ecx, ecx
jne 0x468366
push dword [ebx + 0xc]
call fcn.004688a0
add esp, 4
mov esi, eax
jmp 0x468368
xor esi, esi
mov eax, dword [ebx + 0x2c]
mov ecx, esi
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x24c]
push ecx
push str.__filename__s_
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
add esp, 0x10
mov edi, eax
test esi, esi
je 0x46839e
push esi
call dword [0x4a4754]
add esp, 4
test edi, edi
jne 0x4686e8
mov esi, dword [ebp - 0x258]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4683d9
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4686e8
mov esi, dword [esi + 0x20]
test esi, esi
je 0x468410
push dword [esi]
lea eax, [ebp - 0x24c]
push str._r_n_s
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4686e8
mov esi, dword [esi + 4]
test esi, esi
jne 0x4683e0
jmp 0x468418
test edi, edi
jne 0x4686e8
push str._r_n_r_n
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4686e8
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x4684d7
test al, 0x10
je 0x46845b
lea eax, [ebp - 0x24c]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
jmp 0x4684bf
test al, 0x40
je 0x4684b2
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0x4a4750]
add esp, 4
test eax, eax
jne 0x46847c
lea edi, [eax + 0x1b]
jmp 0x4686cd
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 0x46849e
mov dword [ecx], eax
add dword [ebp - 0x24c], edi
adc dword [ebp - 0x248], 0
xor edi, edi
jmp 0x4686cd
lea eax, [ebp - 0x24c]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
lea eax, [ebp - 0x240]
push 1
push eax
call fcn.00467ce0
add esp, 0x14
mov edi, eax
jmp 0x4686cd
mov esi, dword [ebp - 0x258]
push dword [esi + 0xc]
push 0x48c5a8
call fcn.0044c390
add esp, 8
test eax, eax
je 0x468500
call fcn.0042ce27
mov ebx, eax
mov dword [ebp - 0x264], ebx
jmp 0x468518
push 0x48af50
push dword [esi + 0xc]
call fcn.00425d2b
add esp, 8
mov dword [ebp - 0x264], eax
mov ebx, eax
test ebx, ebx
je 0x46869b
call fcn.0042ce27
push ebx
cmp ebx, eax
je 0x4685bc
call fcn.00423755
mov edi, dword [esi + 0xc]
push 0x10
call dword [0x4a4750]
mov esi, eax
add esp, 8
test esi, esi
jne 0x468551
mov edi, 0x1b
jmp 0x4686c7
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 0x468573
mov dword [eax], esi
push dword [esi + 8]
push 0x48c5a8
call fcn.0044c390
add esp, 8
test eax, eax
jne 0x4685b5
lea eax, [ebp - 0x23c]
push eax
push dword [esi + 8]
call fcn.0048300f
add esp, 8
test eax, eax
jne 0x4685b5
mov eax, dword [ebp - 0x224]
add dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x220]
adc dword [ebp - 0x248], eax
xor edi, edi
jmp 0x4686c7
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.00426900
add esp, 0x10
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x4686c7
mov ebx, dword [ebp - 0x240]
xor edi, edi
push 0x10
call dword [0x4a4750]
mov esi, eax
add esp, 4
test esi, esi
je 0x468547
mov eax, dword [ebp - 0x25c]
inc eax
mov dword [esi], edi
push eax
call dword [0x4a4750]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x46868a
push dword [ebp - 0x25c]
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.00424600
mov ecx, dword [ebp - 0x25c]
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esi + 0xc], ecx
mov byte [ecx + eax], 0
mov dword [esi + 4], 1
test ebx, ebx
je 0x46864a
mov dword [ebx], esi
push dword [ebp - 0x264]
add dword [ebp - 0x24c], ecx
lea eax, [ebp - 0x204]
push 0x200
adc dword [ebp - 0x248], edi
mov ebx, esi
push 1
push eax
mov dword [ebp - 0x240], ebx
call fcn.00426900
add esp, 0x10
mov dword [ebp - 0x25c], eax
test eax, eax
jne 0x4685e8
jmp 0x4686c7
push esi
call dword [0x4a4754]
add esp, 4
mov edi, 0x1b
jmp 0x4686c7
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x4686b6
push dword [esi + 0xc]
push str.couldnt_open_file___s__n
push eax
call fcn.0044a6a0
add esp, 0xc
mov eax, dword [ebp - 0x260]
mov edi, 0x1a
mov dword [eax], 0
mov ebx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x258]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x46872e
test edi, edi
je 0x468290
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x270]
push eax
call fcn.00467ff0
mov eax, dword [ebp - 0x254]
add esp, 4
test eax, eax
je 0x468711
push eax
call dword [0x4a4754]
add esp, 4
push ebx
call dword [0x4a4754]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x4686e8
mov esi, dword [ebp - 0x254]
cmp dword [ebx + 0x24], edi
je 0x46875f
push esi
push str._r_n___s__
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4686e8
mov ebx, dword [ebx]
mov dword [ebp - 0x250], ebx
test ebx, ebx
je 0x468780
mov edi, dword [ebp - 0x244]
jmp 0x468160
mov edi, 0x1b
jmp 0x4686e8
test edi, edi
jne 0x4686e8
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x24c]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00467e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4686ee
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x24c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x248]
mov dword [ecx + 4], eax
test esi, esi
je 0x4687d9
push esi
call dword [0x4a4754]
add esp, 4
push ebx
call dword [0x4a4754]
mov eax, dword [ebp - 0x260]
add esp, 4
mov ecx, dword [ebp - 0x268]
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042419e
mov esp, ebp
pop ebp
ret