Function at 0x412730
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
mov eax, dword [esp + 0x254]
mov ecx, dword [esp + 0x258]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [eax], 0
xor eax, eax
test ecx, ecx
mov dword [esp + 0x2c], 0
je 0x412a52
mov eax, dword [esp + 0x250]
call fcn.00411880
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, 0x1b
je 0x412a52
mov edx, dword [esp + 0x25c]
mov eax, str.Content_Type:_multipart_form_data
lea esi, [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], str._s__boundary_s_r_n
test edx, edx
cmovne eax, dword [esp + 0x25c]
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00411a20
test eax, eax
jne 0x412ab6
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x28]
je 0x41280d
mov dword [esp + 8], 0x46549f
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], str.___s_r_n
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov dword [esp + 8], str.Content_Disposition:_form_data__name_
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x258]
xor edx, edx
mov ecx, dword [eax + 4]
mov dword [esp + 4], edi
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, esi
call fcn.004118c0
test eax, eax
mov ebx, eax
jne 0x412a88
mov dword [esp + 8], 0x4654cb
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00411a20
test eax, eax
jne 0x412a86
mov eax, dword [esp + 0x258]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4128f7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4128b3
mov dword [esp], eax
call dword [0x451010]
mov eax, dword [esp + 0x250]
call fcn.00411880
test eax, eax
mov dword [esp + 0x18], eax
je 0x412cf5
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x258]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x258]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], ecx
je 0x412b75
lea esi, [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 8], str._r_n___s_r_nContent_Disposition:_attachment
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0xc]
mov ecx, esi
mov dword [esp], edi
call fcn.00411b10
mov ebx, eax
test ebx, ebx
jne 0x412a88
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x412ad6
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._r_nContent_Type:__s
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x14]
mov ebp, dword [eax + 0x20]
test ebp, ebp
jne 0x412a67
jmp 0x412ae5
test ebx, ebx
jne 0x412a88
mov eax, dword [esp + 0x258]
mov ebp, dword [eax + 0x24]
test ebp, ebp
je 0x4129d7
mov eax, dword [esp + 0x18]
mov dword [esp + 8], str._r_n___s__
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x258]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x258], eax
jne 0x4127e5
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], str._r_n___s___r_n
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x260]
mov edx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], edx
test eax, eax
je 0x412a36
mov dword [esp], eax
call dword [0x451010]
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [0x451010]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x254]
mov dword [ecx], eax
xor eax, eax
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x412ae5
mov eax, dword [ebp]
mov dword [esp + 8], str._r_n_s
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00411a20
test eax, eax
je 0x412a60
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp], eax
call fcn.00412640
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412aa5
mov dword [esp], eax
call dword [0x451010]
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [0x451010]
mov eax, ebx
jmp 0x412a52
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [0x451010]
mov eax, dword [esp + 0x14]
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ebp, dword [eax + 0x20]
test ebp, ebp
jne 0x412a67
test ebx, ebx
jne 0x412a88
mov dword [esp + 8], str._r_n_r_n
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00411a20
test eax, eax
mov ebx, eax
jne 0x412a88
mov eax, dword [esp + 0x258]
mov eax, dword [eax + 0x28]
test al, 3
jne 0x412ba5
test al, 0x10
jne 0x412c67
test al, 0x40
mov eax, dword [esp + 0x258]
je 0x412c50
mov ecx, dword [eax + 0x30]
mov edx, 2
mov dword [esp + 4], edi
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, esi
call fcn.004118c0
test eax, eax
mov ebx, eax
sete al
mov ecx, dword [esp + 0x14]
test al, al
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x14], edx
je 0x41299b
test edx, edx
je 0x41299b
mov eax, dword [esp + 0x258]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x412910
mov eax, dword [esp + 0x258]
mov eax, dword [eax + 0x28]
test al, 0x51
je 0x412956
mov ecx, dword [esp + 0x258]
mov edx, dword [ecx + 0x2c]
test edx, edx
je 0x412cdf
mov eax, dword [esp + 0x258]
jmp 0x41293d
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp], 0x4653e5
mov dword [esp + 4], eax
call sym.curl.exe_curl_strequal
mov ebp, dword [sym.imp.msvcrt.dll__iob]
test eax, eax
je 0x412c7a
test ebp, ebp
je 0x412c9b
cmp ebp, dword [sym.imp.msvcrt.dll__iob]
je 0x412c1f
mov dword [esp], ebp
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x14]
mov edx, 3
mov ecx, dword [eax + 0xc]
mov dword [esp + 4], edi
mov dword [esp], 0
jmp 0x412b3a
mov dword [esp], eax
lea ecx, [esp + 0x30]
mov edx, 1
mov dword [esp + 4], edi
mov eax, esi
call fcn.004118c0
test eax, eax
jne 0x412cec
lea eax, [esp + 0x30]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x200
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x412c00
mov eax, 1
jmp 0x412b48
mov ecx, dword [eax + 0xc]
mov dword [esp + 4], edi
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov edx, 1
jmp 0x412b3a
mov eax, dword [esp + 0x258]
mov ecx, dword [eax + 0x14]
mov dword [esp + 4], edi
mov eax, dword [eax + 0x18]
jmp 0x412c5a
mov eax, dword [esp + 0x14]
mov dword [esp + 4], 0x4653c0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebp, eax
test ebp, ebp
jne 0x412bd2
mov eax, dword [esp + 0x250]
test eax, eax
je 0x412cc8
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], str.couldnt_open_file___s_
mov dword [esp + 8], eax
mov eax, dword [esp + 0x250]
mov dword [esp], eax
call fcn.00416580
mov eax, dword [esp + 0x254]
mov ebx, 0x1a
mov dword [eax], 0
jmp 0x412a88
test al, 1
je 0x41294c
jmp 0x412b99
mov ebx, eax
xor eax, eax
jmp 0x412b48
mov ebx, 0x1b
jmp 0x412a88