Function at 0x406620
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp - 8]
sub esp, 0x524
mov dword [ebp - 0x4d4], 0x4bd9f0
mov dword [ebp - 0x4d0], 0x4be828
mov dword [ebp - 0x4cc], eax
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4c8], 0x406bf0
mov dword [ebp - 0x4c4], esp
mov dword [esp], eax
call fcn.00414b70
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x406675
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004051c0
test al, al
mov byte [ebp - 0x4f0], al
jne 0x4066b0
mov byte [ebp - 0x4f0], 0
lea eax, [ebp - 0x4ec]
mov dword [esp], eax
call fcn.00414c00
movzx eax, byte [ebp - 0x4f0]
mov edi, dword [ebp - 4]
leave
ret
lea edx, [ebp - 0x444]
xor eax, eax
mov ecx, 0xf
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x464]
mov dword [ebp - 0x444], 0x3c
mov dword [ebp - 0x43c], 0x10
mov dword [ebp - 0x430], 0x100
mov dword [ebp - 0x414], 0x100
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x418], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 0xffffffff
call dword [sym.imp.WININET.DLL_InternetCrackUrlW]
sub esp, 0x10
test eax, eax
je 0x40668a
lea eax, [ebp - 0x464]
mov dword [esp + 4], 0x4c36c8
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x406785
lea eax, [ebp - 0x464]
mov dword [esp + 4], str.http
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40668a
mov byte [ebp - 0x4f0], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.Breakpad_1.0__Windows_
mov dword [ebp - 0x4e8], 0xffffffff
call dword [sym.imp.WININET.DLL_InternetOpenW]
sub esp, 0x14
test eax, eax
mov ecx, eax
mov dword [ebp - 0x4f8], eax
je 0x40668a
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
movzx eax, word [ebp - 0x42c]
mov dword [esp], ecx
mov dword [esp + 8], eax
lea eax, [ebp - 0x408]
mov dword [esp + 4], eax
mov dword [ebp - 0x4e8], 1
call dword [sym.imp.WININET.DLL_InternetConnectW]
sub esp, 0x20
test eax, eax
mov edi, eax
mov dword [ebp - 0x4fc], eax
je 0x406bb5
cmp byte [ebp - 0x4f0], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.POST
mov dword [esp], edi
sbb eax, eax
and eax, 0xff800000
add eax, 0x880000
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x208]
mov dword [esp + 8], eax
mov dword [ebp - 0x4e8], 2
call dword [sym.imp.WININET.DLL_HttpOpenRequestW]
sub esp, 0x20
test eax, eax
mov dword [ebp - 0x4f4], eax
je 0x406ba1
lea edi, [ebp - 0x4ac]
mov dword [esp], edi
mov dword [ebp - 0x4e8], 3
call fcn.00404890
lea eax, [ebp - 0x494]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x4e8], 4
call fcn.00404970
mov dword [esp + 0xc], 0x20000000
mov dword [esp + 8], 0xffffffff
mov eax, dword [ebp - 0x494]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4f4]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 5
call dword [sym.imp.WININET.DLL_HttpAddRequestHeadersW]
lea eax, [ebp - 0x47c]
lea edi, [ebp - 0x474]
sub esp, 0x10
mov dword [ebp - 0x478], 0
mov byte [ebp - 0x474], 0
mov dword [ebp - 0x47c], edi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4ac]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 6
call fcn.00405710
test al, al
je 0x406af2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x406a04
mov dword [esp + 0xc], 4
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 5
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4f4]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetSetOptionW]
mov dword [ebp - 0x4e8], 6
mov dword [ebp - 0x4f0], eax
call eax
sub esp, 0x10
test eax, eax
jne 0x4069c9
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Could_not_unset_send_timeout__continuing..._n
add eax, 0x40
mov dword [esp], eax
mov dword [ebp - 0x4e8], 6
call fcn.00404860
mov dword [esp + 0xc], 4
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 6
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4f4]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 6
call dword [ebp - 0x4f0]
sub esp, 0x10
test eax, eax
je 0x406bc9
mov eax, dword [ebp - 0x478]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x47c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4f4]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 6
call dword [sym.imp.WININET.DLL_HttpSendRequestW]
sub esp, 0x14
test eax, eax
je 0x406af2
lea eax, [ebp - 0x4b8]
mov dword [ebp - 0x4b8], 8
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x13
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4b4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4f4]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 6
call dword [sym.imp.WININET.DLL_HttpQueryInfoW]
sub esp, 0x14
test eax, eax
je 0x406af2
lea eax, [ebp - 0x4b4]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_wcstol
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x406ac4
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xc8
jne 0x406af2
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4f4]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 6
call fcn.00404c50
mov byte [ebp - 0x4f0], al
jmp 0x406af9
mov byte [ebp - 0x4f0], 0
mov eax, dword [ebp - 0x47c]
lea ecx, [ebp - 0x474]
cmp eax, ecx
je 0x406b11
mov dword [esp], eax
call fcn.004bcd30
mov eax, dword [ebp - 0x494]
lea edx, [ebp - 0x48c]
cmp eax, edx
je 0x406b29
mov dword [esp], eax
call fcn.004bcd30
mov eax, dword [ebp - 0x4ac]
lea edx, [ebp - 0x4a4]
cmp eax, edx
je 0x406b41
mov dword [esp], eax
call fcn.004bcd30
mov eax, dword [ebp - 0x4f4]
mov dword [esp], eax
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
mov dword [ebp - 0x4e8], 0
mov dword [ebp - 0x4f4], eax
call eax
sub esp, 4
mov eax, dword [ebp - 0x4fc]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 0
call dword [ebp - 0x4f4]
sub esp, 4
mov eax, dword [ebp - 0x4f8]
mov dword [esp], eax
mov dword [ebp - 0x4e8], 0
call dword [ebp - 0x4f4]
sub esp, 4
jmp 0x406691
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
mov byte [ebp - 0x4f0], 0
mov dword [ebp - 0x4f4], eax
jmp 0x406b64
mov eax, dword [sym.imp.WININET.DLL_InternetCloseHandle]
mov byte [ebp - 0x4f0], 0
mov dword [ebp - 0x4f4], eax
jmp 0x406b80
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Could_not_unset_receive_timeout__continuing..._n
add eax, 0x40
mov dword [esp], eax
mov dword [ebp - 0x4e8], 6
call fcn.00404860
jmp 0x406a04