Function at 0x430560
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24c
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x268]
mov esi, dword [esp + 0x26c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [eax], 0
xor eax, eax
test ecx, ecx
je 0x430800
mov eax, dword [esp + 0x260]
call fcn.0042f730
mov ecx, eax
mov dword [esp + 0x2c], eax
mov eax, 0x1b
test ecx, ecx
je 0x430800
test esi, esi
mov eax, str.Content_Type:_multipart_form_data
mov dword [esp + 0x10], ecx
cmove esi, eax
mov dword [esp + 8], str._s__boundary_s_r_n
mov dword [esp + 4], 0
mov dword [esp + 0xc], esi
lea esi, [esp + 0x30]
mov dword [esp], esi
call fcn.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307f1
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x38]
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x38]
je 0x43063a
mov dword [esp + 8], 0x4f38a3
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], str.___s_r_n
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov dword [esp + 8], str.Content_Disposition:_form_data__name_
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x268]
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.0042f770
test eax, eax
mov ebx, eax
jne 0x4307d8
mov dword [esp + 8], 0x4f38cf
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x268]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x430722
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [0x4ea01c]
mov eax, dword [esp + 0x260]
call fcn.0042f730
test eax, eax
mov dword [esp + 0x28], eax
je 0x430a2a
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.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x268]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x268]
test eax, eax
mov dword [esp + 0x24], ecx
je 0x4308a0
mov eax, dword [esp + 0x28]
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.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0xc]
mov ecx, esi
mov dword [esp], edi
call fcn.0042f950
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x43079e
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.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x24]
mov ebp, dword [eax + 0x20]
test ebp, ebp
jne 0x4307b7
jmp 0x430810
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x430810
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.0042f8e0
test eax, eax
je 0x4307b0
mov ebx, eax
lea eax, [esp + 0x34]
mov dword [esp], eax
call fcn.00430480
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [0x4ea01c]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [0x4ea01c]
mov eax, ebx
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str._r_n_r_n
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x268]
mov eax, dword [eax + 0x28]
test al, 3
jne 0x4308d0
test al, 0x10
jne 0x4309b0
test al, 0x40
mov eax, dword [esp + 0x268]
je 0x430990
mov ecx, dword [eax + 0x30]
mov dword [esp + 4], edi
mov edx, 2
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, esi
call fcn.0042f770
test eax, eax
mov ebx, eax
sete al
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x24]
test edx, edx
mov dword [esp + 0x24], edx
je 0x430a34
test al, al
je 0x430a34
mov eax, dword [esp + 0x268]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x430735
mov eax, dword [esp + 0x268]
mov eax, dword [eax + 0x28]
test al, 0x51
je 0x430775
mov ecx, dword [esp + 0x268]
mov edx, dword [ecx + 0x2c]
test edx, edx
je 0x430a14
mov eax, dword [esp + 0x268]
jmp 0x430762
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp], 0x4f37e5
mov dword [esp + 4], eax
call sym.a.exe_curl_strequal
test eax, eax
je 0x4309c3
mov ebp, dword [sym.imp.msvcrt.dll__iob]
test ebp, ebp
jne 0x43095f
mov edx, dword [esp + 0x260]
test edx, edx
je 0x430926
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], str.couldnt_open_file___s_
mov dword [esp + 8], eax
mov eax, dword [esp + 0x260]
mov dword [esp], eax
call fcn.0041b640
mov eax, dword [esp + 0x264]
mov ebx, 0x1a
mov dword [eax], 0
jmp 0x4307d8
lea ecx, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], edi
mov edx, 1
mov eax, esi
call fcn.0042f770
test eax, eax
jne 0x430a21
lea eax, [esp + 0x40]
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 0x430940
mov eax, 1
jmp 0x430873
mov ecx, dword [eax + 0xc]
mov dword [esp + 4], edi
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov edx, 1
jmp 0x430865
mov eax, dword [esp + 0x268]
mov ecx, dword [eax + 0x14]
mov dword [esp + 4], edi
mov eax, dword [eax + 0x18]
jmp 0x43099a
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0x4f37c0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x4308f9
mov ebp, dword [sym.imp.msvcrt.dll__iob]
cmp eax, ebp
je 0x43095f
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x24]
mov edx, 3
mov ecx, dword [eax + 0xc]
mov dword [esp + 4], edi
mov dword [esp], 0
jmp 0x430865
test al, 1
je 0x430775
jmp 0x4308c4
mov ebx, eax
xor eax, eax
jmp 0x430873
mov ebx, 0x1b
jmp 0x4307d8
test ebx, ebx
jne 0x4307d8
mov eax, dword [esp + 0x268]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x430a70
mov eax, dword [esp + 0x28]
mov dword [esp + 8], str._r_n___s__
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov eax, dword [esp + 0x268]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x268], eax
jne 0x430612
mov eax, dword [esp + 0x2c]
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.0042f8e0
test eax, eax
mov ebx, eax
jne 0x4307d8
mov ecx, dword [esp + 0x270]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov dword [esp], eax
call dword [0x4ea01c]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [0x4ea01c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x264]
mov dword [ecx], eax
add esp, 0x24c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret