Function at 0x459bd0
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 0x45f180
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x16dc
call fcn.00439c50
mov eax, dword [0x483ca0]
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 ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x16a4], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x16ac], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16a0], ecx
mov ecx, str.127.0.0.1
mov dword [ebp - 0x16b0], eax
mov dword [ebp - 0x169c], ebx
mov dword [ebp - 4], 0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x459c64
test dl, dl
je 0x459c60
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x459c64
add eax, 2
add ecx, 2
test dl, dl
jne 0x459c44
xor eax, eax
jmp 0x459c69
sbb eax, eax
or eax, 1
test eax, eax
jne 0x459cb0
push str.Skip_127.0.0.1
push 0x12f
push str.HLib.cpp
push eax
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
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.004396df
mov esp, ebp
pop ebp
ret 0x24
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x16ac]
call fcn.0040eba0
add esp, 8
mov dword [ebp - 0x16b4], 0xa
lea eax, [ebp - 0x16b4]
push 4
push eax
push 0x49
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0x16b4]
push eax
push 0x4a
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [ebp - 0x294]
push eax
push ebx
mov bl, byte [ebp + 0x1c]
push esi
movsx eax, bl
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x16b0]
push str.Begin_HR::DoRequest____sIP___s__iPort___d__cPType_c__sByPass_s__sPAddress_s__URL_s
push 0x13d
push str.HLib.cpp
push 0
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x30
mov byte [0x485284], bl
test esi, esi
je 0x459d52
mov edx, 0x48e750
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x459d45
mov eax, dword [ebp - 0x169c]
test eax, eax
je 0x459d78
mov edx, 0x48f750
mov ecx, eax
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x459d65
mov eax, dword [ebp - 0x169c]
push 0
cmp bl, 0x44
jne 0x459d87
push 0
push 0
push 1
jmp 0x459d98
cmp bl, 0x4c
jne 0x459d94
push 0
push 0
push 0
jmp 0x459d98
push esi
push eax
push 3
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x14], eax
test eax, eax
je 0x45a4be
push 4
lea ecx, [ebp - 0x1698]
mov dword [ebp - 0x1698], 0x15f90
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x459e0d
call ebx
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push dword [ebp - 0x1698]
push str.Conn_lTimeout_d__error_code:__d__error:__s
push 0x156
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
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 0x459e5e
call ebx
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push dword [ebp - 0x1698]
push str.Recv_lTimeout_d__error_code:__d__error:__s
push 0x15c
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
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 0x459eaf
call ebx
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push dword [ebp - 0x1698]
push str.Send_lTimeout_d__error_code:__d__error:__s
push 0x162
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x24
push dword [ebp - 0x1698]
push str.after_ISO_lTimeout___d
push 0x165
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
lea eax, [ebp - 0x16bc]
push eax
call fcn.0043c27f
mov ebx, dword [ebp - 0x16ac]
push 0x3f
push ebx
call fcn.0043c4d0
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x1294]
push dword [ebp - 0x16b8]
push dword [ebp - 0x16bc]
push ebx
je 0x459f14
push str._srdm_ld
jmp 0x459f19
push str._s_rdm_ld
push eax
call fcn.0043a459
add esp, 0x14
push 0
push 0
push 3
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x16b0]
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x459f81
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.failed_to_connect._error_code:__d__error:__s
push 0x176
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x20
jmp 0x459c90
push str.after_IC
push 0x17a
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x18
lea eax, [ebp - 0x1294]
cmp byte [ebp + 0x14], 0
push 0
je 0x459fba
push 0x4c00000
jmp 0x459fbc
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 0x459ffb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.failed_to_open_r:_error_code:__d__error:__s
push 0x194
jmp 0x459f62
push str.after_HR
push 0x198
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 0x18
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x16c4]
push eax
lea eax, [ebp - 0x16a8]
mov dword [ebp - 0x16c4], 4
push eax
push 0x1f
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x16a8], 0x3380
lea eax, [ebp - 0x16a8]
push 4
push eax
push 0x1f
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
movdqu xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
mov eax, dword [ebp - 0x16a4]
mov ecx, str.POST
movdqu xmmword [ebp - 0x94], xmm0
movdqu xmm0, xmmword [0x4735b0]
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmm0, xmmword [0x4735c0]
movdqu xmmword [ebp - 0x74], xmm0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45a0c4
test dl, dl
je 0x45a0c0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45a0c4
add eax, 2
add ecx, 2
test dl, dl
jne 0x45a0a4
xor eax, eax
jmp 0x45a0c9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45a111
mov ecx, dword [ebp - 0x16a0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a0d6
sub ecx, edx
lea edx, [ebp - 0x94]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x45a0e8
push ecx
push dword [ebp - 0x16a0]
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 0x45a122
push 0
push 0
push 0
push 0
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x45a144
call ebx
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.HSR_failed._error_code:__d__error:__s
push 0x1c4
jmp 0x459f62
push str.after_HSR
push 0x1c8
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x18
mov dword [ebp - 0x169c], 4
lea eax, [ebp - 0x169c]
push 0
push eax
lea eax, [ebp - 0x16c0]
push eax
push 0x20000013
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x45a1b2
call ebx
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.HQ___failed_error_code:__d__error:__s
push 0x1d0
jmp 0x459f62
push str.after_HQI
push 0x1d4
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
mov eax, dword [ebp - 0x16c0]
add esp, 0x18
cmp eax, 0x191
je 0x45a1ee
cmp eax, 0x197
jne 0x45a2ad
push eax
push str.after_HQI_troubled_dwCode___d
push 0x1d8
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
lea eax, [ebp - 0x169c]
push eax
push 0x32
lea eax, [ebp - 0x1694]
push eax
push dword [edi + 0x10]
call esi
cmp dword [ebp - 0x169c], 0
jne 0x45a213
push str.after_IRF
push 0x1e3
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
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 0x45a2ad
call ebx
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.HSR_resend____ERROR_INTERNET_FORCE_RETRY_failed_error_code:__d__error:__s
push 0x1f0
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x20
jmp 0x45a025
cmp byte [edi + 1], 0
mov ecx, 0x4619f8
mov eax, 0x4619f4
cmove eax, ecx
push eax
push dword [edi + 8]
push str.HR::DoRequest_succeeded__m_iExpectedReceiveSize___d__m_bUseMinReadBuffer___s
push 0x1fd
push str.HLib.cpp
push 0
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x20
cmp dword [edi + 0x1c], 0
je 0x45a4b7
mov esi, dword [edi + 0x18]
push esi
push 0
push dword [edi + 0x20]
call fcn.00438b10
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 0x45a3d8
test esi, esi
jle 0x45a3d8
test esi, esi
jle 0x45a3cc
mov ebx, 0x3800
mov dword [ebp - 0x16a0], 0
lea eax, [ebp - 0x16a0]
cmp esi, ebx
push eax
mov eax, dword [edi + 0x20]
cmovl ebx, esi
add eax, dword [edi + 4]
push ebx
push eax
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x45a3aa
mov eax, dword [ebp - 0x16a0]
test eax, eax
je 0x45a3aa
add dword [edi + 4], eax
sub esi, eax
test byte [0x48e748], 0x80
je 0x45a333
push ebx
push str.InternetReadFile___iSizeToRead___d
push 0x21c
push str.HLib.cpp
push 3
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
jmp 0x45a333
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.IRE___error_code:__d__error:__s
push 0x221
jmp 0x459f62
push str.HR::DoRequest_succeeded__Read1_Completed_
push 0x226
jmp 0x45a418
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 0x45a40e
call ebx
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.IRE___error_code:__d__error:__s
push 0x22e
jmp 0x459f62
push str.HR::DoRequest_succeeded__Read2_Completed_
push 0x232
push str.HLib.cpp
push 0
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
mov eax, dword [edi + 0x1c]
add esp, 0x18
cmp byte [eax], 0
je 0x45a4b7
push eax
push dword [edi + 0x20]
call fcn.00439380
add esp, 8
test eax, eax
jne 0x45a4b7
push dword [edi + 0x20]
push str.Invalid_page_returned:__s
push 0x237
push str.HLib.cpp
push eax
push str.HR::DoRequest
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
jmp 0x459c90
mov al, 1
jmp 0x459c92
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
add esp, 4
push eax
push esi
push str.I_Open_failed_error_code:__d__error:__s
push 0x1f9
jmp 0x459f62