Function at 0x420641
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
sub esp, 0x48c
lea ebp, [esp - 4]
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x48c], eax
push 0x6c
mov eax, 0x4a04ec
call fcn.00486a94
mov eax, dword [ebp + 0x498]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x49c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x4a0]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x4a4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x4a8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x4ac]
xor edi, edi
mov dword [ebp - 0x24], edi
push str.CHttpClient::SendString_start
lea esi, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x2c], 0x2710
call fcn.00404db2
mov dword [ebp - 4], edi
call fcn.00404e64
xor ebx, ebx
push edi
inc ebx
push ebx
call fcn.00404f5a
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 0xf
call fcn.004042d9
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.00421292
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004240dd
mov byte [ebp - 4], 3
cmp dword [ebp + 0x84], edi
jne 0x42070c
push str.Mozilla_4.0__compatible__MSIE_4.0__Windows_NT_4.0_
lea eax, [ebp + 0x70]
push eax
call fcn.00404d8d
push str.CHttpClient::SendString_userAgent
lea esi, [ebp - 0x48]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.00404975
pop ecx
xor ebx, ebx
push edi
inc ebx
push ebx
mov byte [ebp - 4], 3
call fcn.00404f5a
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x420746
lea eax, [ebp + 0x74]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x28], eax
cmp eax, edi
jne 0x42078b
push str.CHttpClient::SendString_InternetOpen_failed.
lea esi, [ebp - 0x48]
call fcn.00404db2
mov byte [ebp - 4], 5
call fcn.00404e64
push edi
push ebx
mov byte [ebp - 4], 3
call fcn.00404f5a
mov ecx, dword [ebp - 0x14]
push 0x4b455a
call fcn.00403f52
jmp 0x420a23
push 7
pop eax
xor ecx, ecx
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x4c], edi
mov word [ebp + 0x3c], cx
mov dword [ebp + 0x6c], eax
xor eax, eax
mov dword [ebp + 0x68], edi
mov word [ebp + 0x58], ax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 8
call fcn.004204cc
cmp dword [ebp + 0x50], 8
pop ecx
pop ecx
mov ecx, dword [ebp + 0x3c]
jae 0x4207c8
lea ecx, [ebp + 0x3c]
push edi
push edi
push 3
mov eax, 0x4ad5a4
push eax
push eax
push 0x50
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x420836
push str.CHttpClient::SendString_InternetConnect_failed.
lea esi, [ebp - 0x48]
call fcn.00404db2
mov byte [ebp - 4], 9
call fcn.00404e64
push edi
push ebx
mov byte [ebp - 4], 8
call fcn.00404f5a
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x14]
push 0x4b455a
call fcn.00403f52
push edi
push ebx
lea esi, [ebp + 0x54]
call fcn.00404f5a
push edi
push ebx
lea esi, [ebp + 0x38]
call fcn.00404f5a
jmp 0x420a23
cmp dword [ebp - 0x2c], 0xffffffff
je 0x420867
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 2
push eax
call esi
push 4
lea eax, [ebp - 0x2c]
push eax
push 5
push dword [ebp - 0x20]
call esi
push 4
lea eax, [ebp - 0x2c]
push eax
push 6
push dword [ebp - 0x20]
call esi
cmp dword [ebp + 0x6c], 8
mov ecx, dword [ebp + 0x58]
jae 0x420873
lea ecx, [ebp + 0x58]
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x18], 8
jb 0x420881
mov eax, dword [eax + 4]
jmp 0x420884
add eax, 4
push edi
push 0x4400000
push edi
push edi
push edi
push ecx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x4208d5
push str.CHttpClient::SendString_HttpOpenRequest_failed.
lea esi, [ebp - 0x48]
call fcn.00404db2
mov byte [ebp - 4], 0xa
call fcn.00404e64
push edi
push ebx
mov byte [ebp - 4], 8
call fcn.00404f5a
push dword [ebp - 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x28]
call esi
jmp 0x420810
lea eax, [ebp]
push eax
call fcn.0042036f
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 0xb
mov edx, dword [esi]
cmp edx, edi
je 0x4208fe
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x18], 0x10
jb 0x4208f9
mov eax, dword [eax + 4]
jmp 0x420900
add eax, 4
jmp 0x420900
xor eax, eax
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x42090c
lea ecx, [ebp + 4]
push edx
push eax
push dword [ebp + 0x14]
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push edi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 4
push 0x20000013
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x420989
push str.CHttpClient::SendString_HttpQueryInfo_failed.
lea esi, [ebp - 0x78]
call fcn.00404db2
mov byte [ebp - 4], 0xc
call fcn.00404e64
push edi
push ebx
mov byte [ebp - 4], 0xb
call fcn.00404f5a
push dword [ebp - 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x28]
call esi
mov ecx, dword [ebp - 0x14]
push 0x4b455a
call fcn.00403f52
push edi
push ebx
lea esi, [ebp]
call fcn.00404f5a
jmp 0x42081d
mov dword [esi], edi
lea eax, [ebp - 0x24]
push eax
push 0x400
lea eax, [ebp + 0x8c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4209c9
cmp dword [ebp - 0x24], edi
jbe 0x4209c9
push dword [ebp - 0x24]
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x1c]
call fcn.00415123
mov eax, dword [ebp - 0x24]
add dword [esi], eax
mov dword [ebp - 0x24], edi
jmp 0x42098b
push edi
push ebx
lea esi, [ebp]
call fcn.00404f5a
push edi
push ebx
lea esi, [ebp + 0x54]
call fcn.00404f5a
push edi
push ebx
lea esi, [ebp + 0x38]
call fcn.00404f5a
mov dword [ebp - 4], 3
jmp 0x420a02
push dword [ebp - 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x18]
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
call fcn.00404234
push edi
push ebx
lea esi, [ebp + 0x70]
call fcn.00404f5a
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x1c], vtable.CBrowser.0
call fcn.004042f5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x48c]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x490
leave
ret 0x18