Function at 0x404300
Capabilities:
Initialize winhttp library
Prepare http request
Read file on windows
Receive http response
Set http header

Disassembly:
push 0x464
mov eax, 0x4dc939
call fcn.004c1130
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x470], eax
test eax, eax
je 0x404646
test esi, esi
je 0x404646
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push 0x4fe59c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push ebx
push 0x50
mov edi, eax
push 0x4fe5c8
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
je 0x404646
mov eax, 0x2710
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor ecx, ecx
mov dword [ebp - 0x418], 0x4fe5e8
push ecx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x414], ecx
push eax
push ecx
push 0x4fe5f0
push str._api_upload
push str.POST
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x46c], eax
test eax, eax
jne 0x4043b2
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push edi
call esi
jmp 0x404646
push str.Content_Type:_multipart_form_data__boundary__boundary_cswuygtest_r_n
lea ecx, [ebp - 0x464]
call fcn.004034e9
and dword [ebp - 4], 0
lea eax, [ebp - 0x464]
cmp dword [ebp - 0x450], 8
push 0xa0000000
push dword [ebp - 0x454]
cmovae eax, dword [ebp - 0x464]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push str.____boundary_cswuygtest_r_n
lea ecx, [ebp - 0x430]
call fcn.004018ec
mov byte [ebp - 4], 1
push str.Content_Disposition:_form_data__name_file___filename_
call fcn.00401241
pop ecx
push eax
push str.Content_Disposition:_form_data__name_file___filename_
lea ecx, [ebp - 0x430]
call fcn.0040531a
push esi
call fcn.00401241
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.0040531a
mov esi, 0x4fe704
push esi
call fcn.00401241
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.0040531a
mov esi, str.Content_Type:application_octet_stream_r_n_r_n
push esi
call fcn.00401241
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.0040531a
xor eax, eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x438], 0xf
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x44c], al
mov byte [ebp - 4], 2
push 0x4fe734
push dword [ebp - 0x470]
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x468]
push eax
call fcn.004ba471
add esp, 0xc
cmp dword [ebp - 0x468], 0
je 0x404526
push 2
push 0
push dword [ebp - 0x468]
call fcn.004bac15
push dword [ebp - 0x468]
call fcn.004baab7
push 0
push 0
push dword [ebp - 0x468]
mov esi, eax
call fcn.004bac15
add esp, 0x1c
lea ecx, [ebp - 0x44c]
push 0
push esi
call fcn.004053bc
push dword [ebp - 0x468]
cmp dword [ebp - 0x438], 0x10
lea eax, [ebp - 0x44c]
push esi
cmovae eax, dword [ebp - 0x44c]
push 1
push eax
call fcn.004ba67b
push dword [ebp - 0x468]
call fcn.004bad04
add esp, 0x14
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x430]
call fcn.00405274
mov esi, 0x4fe738
push esi
call fcn.00401241
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.0040531a
mov esi, str.____boundary_cswuygtest___r_n
push esi
call fcn.00401241
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.0040531a
cmp dword [ebp - 0x41c], 0x10
lea ecx, [ebp - 0x430]
mov esi, dword [ebp - 0x46c]
lea eax, [ebp - 0x464]
cmovae ecx, dword [ebp - 0x430]
cmp dword [ebp - 0x450], 8
push 0
push dword [ebp - 0x420]
cmovae eax, dword [ebp - 0x464]
push dword [ebp - 0x420]
push ecx
push dword [ebp - 0x454]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push 0x3ff
lea eax, [ebp - 0x40f]
mov byte [ebp - 0x410], 0
push 0
push eax
call fcn.004be330
and dword [ebp - 0x434], 0
lea eax, [ebp - 0x434]
add esp, 0xc
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push ebx
call esi
push edi
call esi
mov byte [ebp - 4], 1
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x44c]
call fcn.004019c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x430]
push ebx
push 1
call fcn.004019c4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x464]
push ebx
push 1
call fcn.00403864
call fcn.004c10df
ret