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

Disassembly:
push ebp
lea ebp, [esp - 0x44]
sub esp, 0xb4
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x58]
mov edx, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x64]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x64], edx
mov edx, dword [ebp + 0x74]
mov dword [eax], 0
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x70]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x60]
mov dword [ecx], 0
push esi
mov esi, dword [ebp + 0x50]
mov dword [eax], 0
mov eax, dword [ebp + 0x4c]
push edi
mov edi, dword [ebp + 0x54]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x70], edx
test eax, eax
je 0x4142b6
mov ecx, 0x48bf3c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4142a6
test dx, dx
je 0x4142a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4142a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x414280
xor eax, eax
jmp 0x4142ab
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x48], 0
test eax, eax
jne 0x4142bd
mov dword [ebp - 0x48], 1
mov ecx, dword [ebp - 0x60]
push 3
push ecx
mov ecx, dword [ebp + 0x5c]
xor eax, eax
push ebx
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push ecx
push edi
push esi
call fcn.00414080
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
add esp, 0x20
lea ecx, [eax + 1]
jmp 0x4142f0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4142f0
sub eax, ecx
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x6c], eax
jne 0x414629
cmp dword [ebp - 0x48], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4143ea
mov ebx, dword [ebp - 0x54]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414320
mov esi, dword [ebp - 0x6c]
sub eax, edx
lea edx, [eax + esi + 0xa]
mov eax, ebx
cmp edx, 0x400
lea edx, [eax + 1]
ja 0x414363
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414340
sub eax, edx
lea eax, [eax + esi + 0xa]
call fcn.0046dbb0
mov esi, esp
test esi, esi
je 0x41438c
mov dword [esi], 0xcccc
add esi, 8
jmp 0x414388
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414363
sub eax, edx
lea eax, [eax + esi + 0xa]
push eax
call fcn.0046a5db
add esp, 4
test eax, eax
je 0x414386
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
jne 0x414398
mov dword [ebp - 0x44], 8
jmp 0x414629
mov ecx, dword [ebp - 0x64]
push ecx
push ebx
push str._s__s
push esi
call fcn.0046a66d
mov edx, dword [ebp - 0x5c]
add esp, 0x10
push 0
push 0x84400100
push 0
push 0
push 0
push esi
push 0x4a0eb0
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x4143d3
call edi
mov dword [ebp - 0x44], eax
cmp dword [esi - 8], 0xdddd
lea eax, [esi - 8]
jne 0x414415
push eax
call fcn.004697b3
add esp, 4
jmp 0x414415
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push 0
push 0x84400100
push 0
push 0
push 0
push eax
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x41441f
call edi
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x41461e
mov esi, dword [ebp - 0x70]
push esi
mov dword [ebp - 0x60], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414439
mov dword [ebp - 0x54], esi
jmp 0x414442
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x54], eax
xor edi, edi
cmp dword [ebp - 0x48], edi
jne 0x414473
lea edx, [ebp - 0x40]
push str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
push edx
call fcn.00413bf0
mov eax, str.436F6E74656E742D547970653A206170706C69636174696F6E2F782D7777772D666F726D2D75726C656E636F646564
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414462
sub eax, edx
shr eax, 1
mov edi, eax
mov byte [ebp + edi - 0x40], cl
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0x48], 0
je 0x41448d
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x4144a1
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
push eax
push ecx
push edi
lea edx, [ebp - 0x40]
push edx
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4144ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4144c3
mov eax, dword [ebp - 0x54]
push esi
push 7
push esi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x2f00
jne 0x4144d8
test esi, esi
je 0x414476
mov dword [ebp - 0x44], esi
jmp 0x41461e
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x41461e
lea ecx, [ebp - 0x44]
push ecx
push ebx
call fcn.004140f0
mov edx, dword [ebp - 0x58]
add esp, 8
mov dword [edx], eax
cmp dword [ebp - 0x44], esi
jne 0x41461e
cmp eax, 0x12c
jb 0x414510
cmp eax, 0x1f5
jne 0x41461e
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00414180
mov edi, eax
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
jne 0x414550
test edi, edi
jbe 0x414559
lea ecx, [edi + 1]
push ecx
call fcn.0046a5db
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
test eax, eax
je 0x414699
mov dword [eax], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax], edi
jmp 0x414559
cmp eax, 8
je 0x414608
xor esi, esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
push 0
push 0
lea ecx, [ebp - 0x48]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x41465f
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x41465f
test edi, edi
jne 0x4145b7
test esi, esi
jne 0x41459c
inc ecx
push ecx
call fcn.0046a5db
mov edx, dword [ebp - 0x50]
add esp, 4
mov dword [edx], eax
jmp 0x4145b4
lea eax, [ecx + esi + 1]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push eax
push edx
call fcn.0046f175
mov ecx, dword [ebp - 0x50]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
test eax, eax
je 0x414694
lea edx, [ebp - 0x58]
push edx
push ecx
add eax, esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x414681
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x414681
add esi, eax
test edi, edi
jne 0x414561
cmp esi, 0xffff
jbe 0x414561
mov eax, dword [ebp - 0x4c]
mov dword [eax], esi
mov dword [ebp - 0x44], 0x7a
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
test ecx, ecx
je 0x41461e
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
test eax, eax
jbe 0x41461e
mov byte [eax + ecx], 0
test ebx, ebx
je 0x414629
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x414637
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x414645
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x44]
lea esp, [ebp - 0x7c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x40]
xor ecx, ebp
call fcn.004698aa
add ebp, 0x44
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
cmp eax, 0x12
je 0x414678
cmp dword [ebp - 0x48], 0
jne 0x414608
mov dword [ebp - 0x44], 0
jmp 0x414608
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
jmp 0x414608
mov edx, dword [ebp - 0x4c]
mov dword [edx], esi
mov dword [ebp - 0x44], 8
jmp 0x414608