Function at 0x4c0930
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6984
mov eax, dword fs:[0]
push eax
sub esp, 0x724
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
push 0
push 0
push 0
push 0
push 0x4cf84f
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c0e2d
push 0
push 0
push 3
push 0
push 0
push 0x50
push str.p3p.sogou.com
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4c0e2d
mov dword [ebp - 0x250], 0x806cc200
lea ecx, [ebp - 0x3c]
call fcn.00406f20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040adf0
mov byte [ebp - 4], 1
push 0
push 0xfde9
lea ecx, [ebp - 0x6d4]
call fcn.0040a290
mov dword [ebp - 0x718], eax
mov ecx, dword [ebp - 0x718]
mov dword [ebp - 0x71c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x71c]
mov eax, dword [edx]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
lea eax, [ebp - 0x6f0]
push eax
call fcn.004bf860
add esp, 0x10
mov dword [ebp - 0x720], eax
mov ecx, dword [ebp - 0x720]
mov dword [ebp - 0x724], ecx
mov byte [ebp - 4], 3
push 0
push 0xfde9
lea ecx, [ebp - 0x6f4]
call fcn.0040a290
mov dword [ebp - 0x728], eax
mov edx, dword [ebp - 0x728]
mov dword [ebp - 0x72c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x72c]
mov ecx, dword [eax]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x710]
push ecx
call fcn.004bf860
add esp, 0x10
mov dword [ebp - 0x730], eax
mov edx, dword [ebp - 0x724]
push edx
push 0x4d3e0c
mov eax, dword [ebp - 0x730]
push eax
push str.recv_p2pcrash.php_software
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004156c0
add esp, 8
push eax
call fcn.00417320
add esp, 8
push eax
call fcn.004156c0
add esp, 8
push eax
call fcn.00417320
add esp, 8
lea ecx, [ebp - 0x710]
call fcn.00406d00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6f4]
call fcn.00439bd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6f0]
call fcn.00406d00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6d4]
call fcn.00439bd0
push 0
mov edx, dword [ebp - 0x250]
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
call fcn.004154c0
push eax
push 0x4d3e30
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4c0e0f
push 0x2d
push 0x1b
lea ecx, [ebp - 0x498]
call fcn.0042a6f0
mov byte [ebp - 4], 5
call fcn.00449fde
and eax, 0xffff
push eax
call fcn.00449fde
and eax, 0xffff
push eax
call fcn.00449fde
and eax, 0xffff
push eax
call fcn.00449fde
and eax, 0xffff
push eax
push str._04X_04X_04X_04X
lea ecx, [ebp - 0x47c]
push ecx
call fcn.0043c0b0
add esp, 0x18
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x498]
call fcn.00410f50
lea eax, [ebp - 0x498]
push eax
push str.Content_Type:_multipart_form_data__boundary
lea ecx, [ebp - 0x4b4]
push ecx
call fcn.004109b0
add esp, 0xc
mov byte [ebp - 4], 6
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x4b4]
call fcn.00406eb0
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [ebp - 0x464]
call fcn.0040adf0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c4]
call fcn.0040adf0
mov byte [ebp - 4], 8
push str._r_n_r_n
push str.Content_Type:_application_octet_stream
push 0x4d3eac
push str.Content_Disposition:_form_data__name_report___filename_crashreport.zip_
push 0x4d3efc
lea eax, [ebp - 0x498]
push eax
push 0x4d3f00
lea ecx, [ebp - 0x464]
push ecx
call fcn.004156c0
add esp, 8
push eax
call fcn.00417320
add esp, 8
push eax
call fcn.004156c0
add esp, 8
push eax
call fcn.004156c0
add esp, 8
push eax
call fcn.004156c0
add esp, 8
push eax
call fcn.004156c0
add esp, 8
push eax
call fcn.004156c0
add esp, 8
push str.___r_n
lea edx, [ebp - 0x498]
push edx
push str._r_n__
lea eax, [ebp - 0x6c4]
push eax
call fcn.004156c0
add esp, 8
push eax
call fcn.00417320
add esp, 8
push eax
call fcn.004156c0
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0xffffffff
je 0x4c0dd3
push 0
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x6c8], eax
lea ecx, [ebp - 0x464]
call fcn.0041bf70
mov esi, eax
lea ecx, [ebp - 0x6c4]
call fcn.0041bf70
add esi, dword [ebp - 0x6c8]
add eax, esi
mov dword [ebp - 0x6d0], eax
mov eax, dword [ebp - 0x6d0]
push eax
call fcn.00442b2d
add esp, 4
mov dword [ebp - 0x714], eax
mov ecx, dword [ebp - 0x714]
mov dword [ebp - 0x6cc], ecx
lea ecx, [ebp - 0x464]
call fcn.0041bf70
push eax
lea ecx, [ebp - 0x464]
call fcn.004154c0
push eax
mov edx, dword [ebp - 0x6cc]
push edx
call fcn.004452f0
add esp, 0xc
push 0
lea eax, [ebp - 0x6c8]
push eax
mov ecx, dword [ebp - 0x6c8]
push ecx
lea ecx, [ebp - 0x464]
call fcn.0041bf70
add eax, dword [ebp - 0x6cc]
push eax
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x6c4]
call fcn.0041bf70
push eax
lea ecx, [ebp - 0x6c4]
call fcn.004154c0
push eax
lea ecx, [ebp - 0x464]
call fcn.0041bf70
add eax, dword [ebp - 0x6cc]
add eax, dword [ebp - 0x6c8]
push eax
call fcn.004452f0
add esp, 0xc
mov eax, dword [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x6d0]
push ecx
mov edx, dword [ebp - 0x6cc]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4c0dd3
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c4]
call fcn.0040ae20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x464]
call fcn.0040ae20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4b4]
call fcn.00406d00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x498]
call fcn.00406d00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0040ae20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406fd0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret