Function at 0x474ed0
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x10bc]
mov eax, 0x113c
call fcn.00447c60
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x10b8], eax
mov eax, dword [ebp + 0x10d0]
mov ecx, dword [ebp + 0x10d8]
mov edx, dword [ebp + 0x10dc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10e0]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10e4]
push ebx
mov ebx, dword [ebp + 0x10f0]
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0x10c8]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x10e8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10c4]
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp + 0x10ec]
push edi
mov edi, dword [ebp + 0x10cc]
mov dword [ecx], 0
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x78], ebx
mov dword [edx], 0
test eax, eax
je 0x474f9a
mov ecx, 0x4aaf38
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x474f8d
test dx, dx
je 0x474f89
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x474f8d
add eax, 4
add ecx, 4
test dx, dx
jne 0x474f67
xor eax, eax
jmp 0x474f92
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x474f9a
xor ebx, ebx
jmp 0x474f9f
mov ebx, 1
push 3
xor eax, eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10d4]
push eax
push edi
push esi
mov dword [ebp - 0x58], ebx
call fcn.00474d40
mov edi, eax
mov eax, dword [ebp - 0x54]
add esp, 0x18
mov dword [ebp - 0x4c], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x474fd3
sub eax, ecx
mov esi, eax
mov dword [ebp - 0x6c], esi
test edi, edi
jne 0x475128
test ebx, ebx
je 0x4750ec
mov ebx, dword [ebp - 0x64]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475000
sub eax, edx
lea ecx, [eax + esi + 0xa]
mov eax, ebx
lea edx, [eax + 1]
cmp ecx, 0x400
ja 0x475043
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475020
sub eax, edx
lea eax, [eax + esi + 0xa]
call fcn.0044a220
mov esi, esp
test esi, esi
je 0x47506c
mov dword [esi], 0xcccc
add esi, 8
jmp 0x475068
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475043
sub eax, edx
lea edx, [eax + esi + 0xa]
push edx
call fcn.00448217
add esp, 4
test eax, eax
je 0x475066
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
jne 0x475085
push str._SendHTTP_Request_____malloca_..._____NULL_:_dwRetERROR_NOT_ENOUGH_MEMORY
mov dword [ebp - 0x4c], 8
call fcn.00469110
add esp, 4
jmp 0x47562d
mov eax, dword [ebp - 0x54]
push eax
push ebx
push str._s__s
push esi
call fcn.00449d02
mov ecx, dword [ebp - 0x68]
add esp, 0x10
push 0
push 0x84400100
push 0
push 0
push 0
push esi
push 0x4aae94
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4750d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._SendHTTP_Request____HttpOpenRequest__GET_..._____NULL_:_dwRet_u
mov dword [ebp - 0x4c], edi
call fcn.00469110
add esp, 8
cmp dword [esi - 8], 0xdddd
lea eax, [esi - 8]
jne 0x475136
push eax
call fcn.004482e1
add esp, 4
jmp 0x475136
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
push 0
push 0x84400100
push 0
push 0
push 0
push edx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
jne 0x475141
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
mov dword [ebp - 0x4c], edi
push str._SendHTTP_Request____HttpOpenRequest__POST_..._____NULL_:_dwRet_u
jmp 0x47512e
push edi
push str._SendHTTP_Request____InternetAccessServer_..._____dwRet_u
call fcn.00469110
add esp, 8
test edi, edi
jne 0x47561f
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x80]
cmp word [edi], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x475194
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475155
sub eax, edx
sar eax, 1
inc eax
push eax
push edi
push 0x1c
push ebx
call esi
test eax, eax
jne 0x475194
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str._SendHTTP_Request____InternetSetOption__INTERNET_OPTION_USERNAME_..._____FALSE_:_dwRet_u
mov dword [ebp - 0x4c], edi
call fcn.00469110
add esp, 8
test edi, edi
jne 0x47561f
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x7c]
cmp word [edi], 0
je 0x4751de
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4751a2
sub eax, edx
sar eax, 1
inc eax
push eax
push edi
push 0x1d
push ebx
call esi
test eax, eax
jne 0x4751de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str._SendHTTP_Request____InternetSetOption__INTERNET_OPTION_PASSWORD_..._____FALSE_:_dwRet_u
mov dword [ebp - 0x4c], esi
call fcn.00469110
add esp, 8
test esi, esi
jne 0x47561f
mov edi, dword [ebp - 0x78]
push edi
xor esi, esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4751f3
mov dword [ebp - 0x64], edi
jmp 0x4751fc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x64], eax
xor edi, edi
cmp dword [ebp - 0x58], edi
jne 0x475234
lea ecx, [ebp + 0x1038]
push str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
push ecx
call fcn.004711e0
mov eax, str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475220
sub eax, edx
shr eax, 1
mov edi, eax
mov byte [ebp + edi + 0x1038], cl
mov ebx, dword [sym.imp.WININET.dll_InternetErrorDlg]
lea ebx, [ebx]
cmp dword [ebp - 0x58], 0
je 0x47526a
mov edx, dword [ebp - 0x50]
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x47529f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SendHTTP_Request____GET_method___HttpSendRequest_..._____FALSE_:_dwRet_u
jmp 0x475294
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push ecx
push edi
lea edx, [ebp + 0x1038]
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x47529f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SendHTTP_Request____POST_method___HttpSendRequest_..._____FALSE_:_dwRet_u
mov dword [ebp - 0x4c], eax
call fcn.00469110
add esp, 8
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x4752cf
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x64]
push eax
push 7
push eax
push ecx
push edx
call ebx
mov esi, eax
cmp esi, 0x2f00
je 0x475240
push esi
push str._SendHTTP_Request____InternetErrorDlg_..._____dwRetry__u____ERROR_INTERNET_FORCE_RETRY
call fcn.00469110
mov eax, dword [ebp - 0x4c]
add esp, 8
cmp esi, 0x2f00
jne 0x4752e4
test eax, eax
je 0x475240
jmp 0x47561f
test eax, eax
jne 0x47561f
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00474db0
mov ecx, dword [ebp - 0x70]
xor ebx, ebx
add esp, 8
mov dword [ecx], eax
cmp dword [ebp - 0x4c], ebx
jne 0x475462
cmp eax, 0x12c
jae 0x475462
lea edx, [ebp - 0x4c]
push edx
push esi
call fcn.00474e40
mov esi, dword [ebp - 0x4c]
mov edi, eax
push esi
push edi
push str._SendHTTP_Request____HttpGetContentLength_...__returns__d_with_error_code__d
call fcn.00469110
add esp, 0x14
cmp esi, ebx
jne 0x475374
cmp edi, ebx
jbe 0x47537d
lea eax, [edi + 1]
push eax
call fcn.00448217
mov ecx, dword [ebp - 0x5c]
add esp, 4
mov dword [ecx], eax
cmp eax, ebx
je 0x47535b
mov edx, dword [ebp - 0x60]
mov dword [eax], ebx
mov dword [edx], edi
jmp 0x47537d
push str._SendHTTP_Request____malloc_dwContentLength__1__returns_NULL____ERROR_NOT_ENOUGH_MEMORY
mov dword [ebp - 0x4c], 8
call fcn.00469110
add esp, 4
jmp 0x47544c
cmp esi, 8
je 0x47544c
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
xor esi, esi
jmp 0x475390
mov ecx, dword [ebp - 0x50]
push 0
push 0
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4754ed
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4754ed
test edi, edi
jne 0x4753e9
test esi, esi
jne 0x4753ce
inc ecx
push ecx
call fcn.00448217
mov edx, dword [ebp - 0x5c]
add esp, 4
mov dword [edx], eax
jmp 0x4753e6
lea eax, [ecx + esi + 1]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
push eax
push edx
call fcn.0044d2b8
mov ecx, dword [ebp - 0x5c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
test eax, eax
je 0x475541
lea edx, [ebp - 0x58]
push edx
push ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x50]
push eax
call ebx
test eax, eax
je 0x475521
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x475521
add esi, eax
test edi, edi
jne 0x475390
cmp esi, 0xffff
jbe 0x475390
mov ecx, dword [ebp - 0x60]
push 0xffff
push esi
mov dword [ecx], esi
mov dword [ebp - 0x4c], 0x7a
push str._SendHTTP_Request____dwCurrentPos__u_____MAX_BUFFER__u_____ERROR_INSUFFICIENT_BUFFER
call fcn.00469110
add esp, 0xc
mov edx, dword [ebp - 0x5c]
mov ecx, dword [edx]
test ecx, ecx
je 0x475462
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
test eax, eax
jbe 0x475462
mov byte [eax + ecx], 0
mov ecx, dword [ebp + 0x10f4]
mov ebx, dword [ebp - 0x60]
mov edx, dword [ebx]
push ecx
push edx
push str._SendHTTP_Request____dwBufferLength__d___uiLenSrvResp__d_
call fcn.00469110
mov edx, dword [ebp - 0x50]
add esp, 0xc
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x16
push edx
mov dword [ebp - 0x6c], 0x1000
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea esi, [ebp - 0x48]
lea esp, [esp]
push 0x49ee7c
push esi
call fcn.004476da
mov edi, eax
add esp, 8
test edi, edi
je 0x47555c
xor eax, eax
mov word [edi], ax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4754c2
sub eax, edx
sar eax, 1
je 0x4754e1
push esi
push str._SendHTTP_Request____Headers___s_
call fcn.00469110
add esp, 8
lea esi, [edi + 4]
test esi, esi
jne 0x4754a0
jmp 0x475584
mov ecx, dword [ebp - 0x60]
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 0x4c], ecx
cmp ecx, 0x12
je 0x475515
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x475515
push ecx
push eax
push str._SendHTTP_Request____InternetQueryDataAvailable__dwSizeToRead__u__..._____FALSE_:_dwRet__u_
jmp 0x475444
mov dword [ebp - 0x4c], 0
jmp 0x47544c
mov edx, dword [ebp - 0x60]
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
push eax
push ecx
push str._SendHTTP_Request____InternetReadFile___dwSizeToRead__u__dwSizeRead__u______FALSE
jmp 0x475444
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x60]
push eax
push ecx
mov dword [edx], esi
mov dword [ebp - 0x4c], 8
push str._SendHTTP_Request____dwSizeToRead__u___dwSizeRead__u___alloc______ppbyBufferNULL____ERROR_NOT_ENOUGH_MEMORY
jmp 0x475444
test esi, esi
je 0x475584
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475565
sub eax, edx
sar eax, 1
je 0x475584
push esi
push str._SendHTTP_Request____Headers___s_
call fcn.00469110
add esp, 8
mov esi, dword [ebx]
test esi, esi
jbe 0x47561f
cmp esi, 0xff
jbe 0x47559b
mov esi, 0xff
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
push esi
push edx
lea eax, [ebp + 0xfb8]
push eax
call fcn.0044dd40
add esp, 0xc
mov byte [eax + esi], 0
cmp esi, dword [ebx]
jae 0x4755e9
lea ecx, [ebp + 0xfb8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
lea edx, [ebp + 0xfb8]
push edx
push eax
call fcn.0040a2d0
push eax
push str._SendHTTP_Request__Server_Response_____s_...
jmp 0x475617
lea eax, [ebp + 0xfb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
lea ecx, [ebp + 0xfb8]
push ecx
push eax
call fcn.0040a2d0
push eax
push str._SendHTTP_Request__Server_Response_____s_
call fcn.00469110
add esp, 8
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x47562d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x47563b
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x475649
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4c]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10b8]
xor ecx, ebp
call fcn.00447645
add ebp, 0x10bc
mov esp, ebp
pop ebp
ret