Function at 0x407320
Capabilities:
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x425024]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x38], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
push 0x40
mov dword [esp + 0x30], eax
lea eax, [esp + 0x9c]
push 0
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x50], 0
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
xor eax, eax
add esp, 0xc
mov word [esp + 0x70], ax
movq qword [esp + 0x82], xmm0
mov dword [esp + 0x8a], eax
mov word [esp + 0x8e], ax
movq qword [esp + 0x68], xmm0
movups xmmword [esp + 0x72], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
test edi, edi
je 0x4073c6
mov dword [edi], eax
cmp dword [esi], eax
je 0x407a8f
cmp dword [esi + 4], eax
je 0x407a8f
cmp dword [esp + 0x30], eax
jne 0x4073f8
mov eax, 0x57
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x24], eax
jge 0x40741f
mov eax, 0x54f
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
mov edi, 0x19
mov dword [esp + 0x10], edi
test eax, eax
jle 0x4074f3
mov esi, dword [esi + 0x20]
test esi, esi
je 0x4074e3
cmp dword [esi], 1
jne 0x4074a3
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4074e3
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4074e3
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4074df
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x407468
sub edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407480
sub ecx, dword [esp + 0x1c]
lea eax, [edi + ecx]
mov edi, dword [esp + 0x10]
add eax, edx
add edi, 0x78
add edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
jmp 0x4074e3
mov edx, dword [esi + 4]
test edx, edx
je 0x4074e3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4074e3
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4074b4
sub edx, edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4074c0
sub ecx, edi
mov edi, dword [esp + 0x10]
add edi, 0x43
lea eax, [ecx + edx]
add edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
jmp 0x4074e3
mov edi, dword [esp + 0x10]
add esi, 0x1c
sub eax, 1
mov dword [esp + 0x14], eax
jne 0x407433
push edi
call fcn.0041ac90
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40751f
lea eax, [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x30]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x28], ecx
jle 0x407667
xor eax, eax
mov dword [esp + 0x28], eax
nop dword [eax + eax]
mov edi, dword [esp + 0x24]
mov edi, dword [edi + 0x20]
add edi, eax
je 0x407646
cmp dword [edi], 1
lea eax, [esp + 0x20]
jne 0x407616
push dword [edi + 0x10]
push dword [edi + 0xc]
push str.____BB_CCDD_BOUNDARY_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_n_r_n
push eax
push ecx
push dword [esp + 0x24]
push esi
call fcn.00407b10
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x407a6b
push eax
push 0x80
push 3
push eax
push eax
push SysReAllocString
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [esp + 0x1c], edx
cmp edx, 0xffffffff
je 0x407923
mov eax, dword [edi + 0x18]
mov esi, dword [esp + 0x20]
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x10]
jae 0x4078f3
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
lea eax, [edi + esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4078bc
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push 0x41fd48
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x30], esi
push edi
call fcn.00407b10
add esp, 0x14
jmp 0x407630
push dword [edi + 8]
push dword [edi + 4]
push str.____BB_CCDD_BOUNDARY_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push eax
push ecx
push dword [esp + 0x24]
push esi
call fcn.00407b10
add esp, 0x1c
mov esi, eax
test esi, esi
jne 0x407a6b
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
add eax, 0x1c
mov edx, dword [esp + 0x24]
inc edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], eax
cmp edi, dword [edx + 0x28]
jl 0x407550
mov edi, dword [esp + 0x10]
lea eax, [ecx + 0x19]
cmp eax, edi
jne 0x407a66
mov esi, edi
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub esi, ecx
push ecx
add edi, ecx
mov edx, esi
push eax
mov ecx, edi
call fcn.00406d30
test eax, eax
js 0x4076a2
mov eax, dword [esp + 0x1c]
sub esp, 0xc
sub esi, eax
mov edx, esi
lea ecx, [eax + edi]
call fcn.00406da0
mov eax, dword [esp + 0x24]
dec dword [esp + 0x10]
push 0
push 0x4400040
push 0
push 0
push 0
push dword [esp + 0x44]
push str.POST
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x407923
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0x10000000
push 0x40
push str.Content_Type:_multipart_form_data__boundary__BB_CCDD_BOUNDARY_r_n
push edi
call esi
test eax, eax
je 0x407889
push dword [esp + 0x10]
lea eax, [esp + 0x9c]
push str.Content_Length:__d_r_n
push 0x20
push eax
call fcn.00406ca0
lea ecx, [esp + 0xa8]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407715
sub ecx, edx
lea eax, [esp + 0x98]
push 0x10000000
sar ecx, 1
push ecx
push eax
push edi
call esi
test eax, eax
je 0x407889
push 0
push 8
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x28
push eax
push edi
mov dword [esp + 0x60], 0
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x407889
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x407889
push 0
push 8
push 0
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x407889
cmp dword [esp + 0x34], 0
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
je 0x4077ed
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push eax
lea eax, [esp + 0x78]
xorps xmm0, xmm0
push eax
push 0x13
push edi
movaps xmmword [esp + 0x84], xmm0
movaps xmmword [esp + 0x94], xmm0
call esi
test eax, eax
je 0x407889
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx], eax
cmp dword [esp + 0x40], 0
jne 0x407806
cmp dword [esp + 0x3c], 0
jne 0x407806
cmp dword [esp + 0x2c], 0
je 0x407a30
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push eax
lea eax, [esp + 0x78]
xorps xmm0, xmm0
push eax
push 5
push edi
movaps xmmword [esp + 0x84], xmm0
movaps xmmword [esp + 0x94], xmm0
call esi
test eax, eax
je 0x407889
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
push eax
mov dword [esp + 0x30], eax
call fcn.0041ac90
mov esi, eax
add esp, 8
test esi, esi
je 0x4079ab
push dword [esp + 0x28]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40794f
push esi
call fcn.0041a7e7
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x14]
call fcn.0041a7e7
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1c]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0041a7e7
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
push edx
mov esi, 0x6f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0041a7e7
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
mov esi, eax
call fcn.0041a7e7
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esp + 0x2c], 0
je 0x407a0d
mov eax, dword [esp + 0x24]
push 0
push 0
push dword [esp + 0x20]
push esi
push 0
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x30], eax
xor ecx, ecx
add eax, 2
mov edx, 2
mov dword [esp + 0x34], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ac90
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
test ecx, ecx
jne 0x4079db
push esi
call fcn.0041a7e7
add esp, 4
push edi
mov esi, 8
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x14]
call fcn.0041a7e7
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x34]
add eax, eax
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x3c]
add esp, 0xc
inc eax
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x20]
push esi
push 0
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407a19
mov dword [eax], esi
jmp 0x407a22
push esi
call fcn.0041a7e7
add esp, 4
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x407a30
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
call fcn.00406f50
xor esi, esi
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x14]
call fcn.0041a7e7
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
mov esi, 0x54f
push dword [esp + 0x14]
call fcn.0041a7e7
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0xdc]
mov eax, 0x15
pop edi
pop esi
xor ecx, esp
call fcn.0041a772
mov esp, ebp
pop ebp
ret 0x14