Function at 0x472440
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4784d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x16dc
call fcn.00444260
mov eax, dword [0x4a6c44]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, str.127.0.0.1
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x16b4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x16a4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1698], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x169c], eax
mov eax, edx
mov dword [ebp - 0x16b8], edx
mov dword [ebp - 4], 0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4724d6
test dl, dl
je 0x4724d2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4724d6
add eax, 2
add ecx, 2
test dl, dl
jne 0x4724b6
xor eax, eax
jmp 0x4724db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x472522
push str.Skip_127.0.0.1
push 0x143
push str.c:_rhub2codehlibhlib.cpp
push eax
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444138
mov esp, ebp
pop ebp
ret 0x24
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x16b4]
call fcn.004154f0
add esp, 8
mov dword [ebp - 0x16b0], 0xa
lea eax, [ebp - 0x16b0]
push 4
push eax
push 0x49
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0x16b0]
push eax
push 0x4a
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x1698]
movsx eax, byte [ebp + 0x1c]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x16b8]
push str.Begin_HR::DoRequest____sIP___s__iPort___d__cPType_c__sByPass_s__sPAddress_s__URL_s
push 0x150
push str.c:_rhub2codehlibhlib.cpp
push 0
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
mov ah, byte [ebp + 0x1c]
add esp, 0x30
mov byte [0x4a7664], ah
test esi, esi
je 0x4725cd
mov edx, 0x4b0c08
mov ecx, esi
sub edx, esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4725c0
mov ecx, dword [ebp - 0x1698]
test ecx, ecx
je 0x4725f3
mov edx, 0x4b1c08
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4725e0
mov ecx, dword [ebp - 0x1698]
push 0
cmp ah, 0x44
jne 0x472602
push 0
push 0
push 1
jmp 0x472613
cmp ah, 0x4c
jne 0x47260f
push 0
push 0
push 0
jmp 0x472613
push esi
push ecx
push 3
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x14], eax
test eax, eax
je 0x472d61
push 4
lea ecx, [ebp - 0x1698]
mov dword [ebp - 0x1698], 0x15f90
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x472686
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push dword [ebp - 0x1698]
push str.Conn_lTimeout_d__error_code:__d__error:__s
push 0x169
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x24
push 4
lea eax, [ebp - 0x1698]
push eax
push 6
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x4726db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push dword [ebp - 0x1698]
push str.Recv_lTimeout_d__error_code:__d__error:__s
push 0x16f
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x24
push 4
lea eax, [ebp - 0x1698]
push eax
push 5
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x472730
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push dword [ebp - 0x1698]
push str.Send_lTimeout_d__error_code:__d__error:__s
push 0x175
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x24
push dword [ebp - 0x1698]
push str.after_ISO_lTimeout___d
push 0x178
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
lea eax, [ebp - 0x16c0]
push eax
call fcn.00454c8c
mov esi, dword [ebp - 0x16b4]
push 0x3f
push esi
call fcn.004479b0
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x1694]
push dword [ebp - 0x16bc]
push dword [ebp - 0x16c0]
push esi
je 0x472795
push str._srdm_ld
jmp 0x47279a
push str._s_rdm_ld
push eax
call fcn.00407cd0
add esp, 0x14
push 0
push 0
push 3
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x16b8]
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x472802
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.failed_to_connect._error_code:__d__error:__s
push 0x189
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x20
jmp 0x472502
push str.after_IC
push 0x18d
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
lea eax, [ebp - 0x1694]
cmp byte [ebp + 0x14], 0
push 0
je 0x47283b
push 0x4c00000
jmp 0x47283d
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 0x16a4]
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x47287c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.failed_to_open_r:_error_code:__d__error:__s
push 0x1a7
jmp 0x4727e3
push str.after_HR
push 0x1ab
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
nop word [eax + eax]
lea eax, [ebp - 0x16c4]
mov dword [ebp - 0x16c4], 4
push eax
lea eax, [ebp - 0x16a0]
push eax
push 0x1f
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x16a0], 0x3380
lea eax, [ebp - 0x16a0]
push 4
push eax
push 0x1f
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
mov eax, dword [ebp - 0x16a4]
mov ecx, str.POST
movups xmmword [ebp - 0x94], xmm0
movups xmm0, xmmword [0x495408]
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [0x495418]
movups xmmword [ebp - 0x74], xmm0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x472943
test dl, dl
je 0x47293f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x472943
add eax, 2
add ecx, 2
test dl, dl
jne 0x472923
xor eax, eax
jmp 0x472948
sbb eax, eax
or eax, 1
test eax, eax
jne 0x472990
mov ecx, dword [ebp - 0x169c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472955
sub ecx, edx
lea edx, [ebp - 0x94]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x472967
push ecx
push dword [ebp - 0x169c]
sub edx, esi
lea eax, [ebp - 0x94]
push edx
push eax
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4729a1
push 0
push 0
push 0
push 0
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4729c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.HSR_failed._error_code:__d__error:__s
push 0x1d7
jmp 0x4727e3
push str.after_HSR
push 0x1db
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
mov dword [ebp - 0x16a8], 4
lea eax, [ebp - 0x16a8]
push 0
push eax
lea eax, [ebp - 0x16ac]
push eax
push 0x20000013
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x472a39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.HQ___failed_error_code:__d__error:__s
push 0x1e3
jmp 0x4727e3
push str.after_HQI
push 0x1e7
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
mov eax, dword [ebp - 0x16ac]
add esp, 0x18
cmp eax, 0x191
je 0x472a75
cmp eax, 0x197
jne 0x472b3e
push eax
push str.after_HQI_troubled_dwCode___d
push 0x1eb
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
nop word [eax + eax]
lea eax, [ebp - 0x16a8]
push eax
push 0x32
lea eax, [ebp - 0x694]
push eax
push dword [edi + 0x10]
call esi
cmp dword [ebp - 0x16a8], 0
jne 0x472aa0
push str.after_IRF
push 0x1f6
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x18
push 0
push 7
push 0x2eee
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x472b3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.HSR_resend____ERROR_INTERNET_FORCE_RETRY_failed_error_code:__d__error:__s
push 0x203
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x20
jmp 0x4728a0
cmp byte [edi + 1], 0
mov ecx, 0x47ca94
mov eax, 0x47ca90
cmove eax, ecx
push eax
push dword [edi + 8]
push str.HR::DoRequest_succeeded__m_iExpectedReceiveSize___d__m_bUseMinReadBuffer___s
push 0x210
push str.c:_rhub2codehlibhlib.cpp
push 0
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x20
cmp dword [edi + 0x1c], 0
je 0x472d5a
mov esi, dword [edi + 0x18]
push esi
push 0
push dword [edi + 0x20]
call fcn.00447160
mov eax, dword [edi + 0x20]
add esp, 0xc
cmp byte [edi + 1], 0
mov dword [ebp - 0x16d4], esi
mov esi, dword [edi + 8]
mov dword [ebp - 0x16ec], 0x28
mov dword [ebp - 0x16d8], eax
mov byte [ebp - 4], 1
je 0x472c77
test esi, esi
jle 0x472c77
test esi, esi
jle 0x472c6b
mov eax, 0x3800
mov dword [ebp - 0x169c], 0
cmp esi, eax
lea ecx, [ebp - 0x169c]
push ecx
cmovl eax, esi
push eax
mov dword [ebp - 0x16ac], eax
mov eax, dword [edi + 4]
add eax, dword [edi + 0x20]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x472c49
mov eax, dword [ebp - 0x169c]
test eax, eax
je 0x472c49
add dword [edi + 4], eax
sub esi, eax
test byte [0x4b0c00], 0x80
je 0x472bc4
push dword [ebp - 0x16ac]
push str.InternetReadFile___iSizeToRead___d
push 0x22f
push str.c:_rhub2codehlibhlib.cpp
push 3
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
jmp 0x472bc4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.IRE___error_code:__d__error:__s
push 0x234
jmp 0x4727e3
push str.HR::DoRequest_succeeded__Read1_Completed_
push 0x239
jmp 0x472cbb
push 0
push 4
lea eax, [ebp - 0x16ec]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x472cb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.IRE___error_code:__d__error:__s
push 0x241
jmp 0x4727e3
push str.HR::DoRequest_succeeded__Read2_Completed_
push 0x245
push str.c:_rhub2codehlibhlib.cpp
push 0
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
mov eax, dword [edi + 0x1c]
add esp, 0x18
cmp byte [eax], 0
je 0x472d5a
push eax
push dword [edi + 0x20]
call fcn.004472c0
add esp, 8
test eax, eax
jne 0x472d5a
push dword [edi + 0x20]
push str.Invalid_page_returned:__s
push 0x24a
push str.c:_rhub2codehlibhlib.cpp
push eax
push str.HR::DoRequest
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x1c
jmp 0x472502
mov al, 1
jmp 0x472504
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.I_Open_failed_error_code:__d__error:__s
push 0x20c
jmp 0x4727e3