Function at 0x43c3a0
Capabilities:
Check internet connectivity via wininet
Create thread
Get http content length
Read data from internet
Receive data
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc560
mov eax, dword fs:[0]
push eax
sub esp, 0xc5c
mov eax, dword [0x4f6cdc]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xc34], esi
mov dword [ebp - 0xc44], edi
mov dword [ebp - 0xc50], ebx
mov dword [ebp - 0xc38], ebx
mov byte [0x4fbf65], bl
cmp esi, ebx
je 0x43c83c
cmp dword [esi + 0x14], ebx
je 0x43c83c
mov eax, dword [esi]
cmp eax, ebx
je 0x43c83c
cmp dword [esi + 0x18], ebx
je 0x43c83c
push ebx
push ebx
push 0x5fb
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0xc2c]
push eax
call fcn.0040a730
cmp byte [ebp - 0xc2c], bl
je 0x43c75c
lea eax, [ebp - 0x82a]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43c450
sub eax, edx
sar eax, 1
je 0x43c75c
lea eax, [ebp - 0xc2a]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43c470
sub eax, edx
sar eax, 1
je 0x43c75c
push 0x206
lea edx, [ebp - 0x21a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x21c], cx
call fcn.0049eae0
add esp, 0xc
xor eax, eax
jmp 0x43c4b0
movzx ecx, word [ebp + eax - 0xc2a]
mov word [ebp + eax - 0x21c], cx
add eax, 2
cmp cx, bx
jne 0x43c4b0
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43c4d1
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x21e], 0x5c
lea eax, [ebp + eax*2 - 0x21c]
je 0x43c515
cmp word [eax - 2], 0x2f
je 0x43c515
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x43c502
mov eax, dword [0x4d4874]
mov dword [edi], eax
lea eax, [ebp - 0x82a]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43c520
lea edi, [ebp - 0x21c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x43c536
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp - 0xc50]
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x43c749
mov edi, dword [ebp - 0xc34]
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0xc5c]
push ecx
push ebx
mov dword [ebp - 0xc68], edx
lea edx, [ebp - 0xc68]
push edx
push 0x43c360
push ebx
lea eax, [ebp - 0x21c]
push ebx
mov dword [ebp - 0xc5c], ebx
mov dword [ebp - 0xc64], eax
mov dword [ebp - 0xc60], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [edi + 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
cmp eax, 0x102
jne 0x43c5dd
mov dword [ebp - 0xc38], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x43c5e3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc60]
mov esi, eax
mov dword [ebp - 0xc3c], esi
cmp eax, ebx
je 0x43c86c
lea ecx, [ebp - 0xc54]
push ecx
lea edx, [ebp - 0xc58]
push edx
lea ecx, [ebp - 0xc30]
push ecx
push 0x20000005
push eax
mov dword [ebp - 0xc30], ebx
mov dword [ebp - 0xc58], 4
mov dword [ebp - 0xc54], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x43c73e
mov edi, dword [ebp - 0xc30]
lea edx, [edi + 1]
push edx
xor esi, esi
mov dword [ebp - 0xc40], ebx
call fcn.004a0979
mov ebx, eax
mov eax, dword [ebp - 0xc30]
add esp, 4
inc eax
push eax
push esi
push ebx
call fcn.0049eae0
add esp, 0xc
jmp 0x43c670
mov eax, dword [ebp - 0xc3c]
lea ecx, [ebp - 0xc40]
push ecx
push edi
lea edx, [ebx + esi]
push edx
push eax
mov dword [ebp - 0xc40], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
sete al
add esi, edi
test al, al
je 0x43c6b2
cmp dword [ebp - 0xc40], 0
jbe 0x43c6bb
cmp esi, dword [ebp - 0xc30]
jb 0x43c670
jmp 0x43c6bb
cmp dword [ebp - 0xc40], 0
je 0x43c72d
mov esi, dword [ebp - 0xc34]
mov edi, dword [ebp - 0xc44]
mov edx, dword [ebp - 0xc30]
push edi
lea ecx, [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push ebx
call fcn.00420fb0
test al, al
je 0x43c72d
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0xc4c], 0
call fcn.0041c230
lea ecx, [ebp - 0xc4c]
push ecx
mov ecx, dword [esi + 0x14]
push eax
call fcn.00419be0
test al, al
je 0x43c72d
mov eax, dword [ebp - 0xc4c]
test eax, eax
je 0x43c72d
add eax, 0x804
push edi
push eax
call fcn.00407290
xor edx, edx
add esp, 8
test eax, eax
setg dl
inc edx
mov dword [ebp - 0xc38], edx
push ebx
call fcn.004a0a01
mov esi, dword [ebp - 0xc3c]
add esp, 4
xor ebx, ebx
cmp esi, ebx
je 0x43c749
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0xc34]
mov edi, dword [ebp - 0xc44]
mov ecx, dword [ebp - 0xc38]
xor eax, eax
cmp ecx, 2
jne 0x43c823
push 0x1402
call fcn.0049eef7
mov dl, byte [edi + 0x800]
lea ecx, [edi + 0x802]
lea esi, [eax + 0x802]
add esp, 4
mov byte [eax + 0x800], dl
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bx
jne 0x43c794
lea ecx, [edi + 0x400]
lea esi, [eax + 0x400]
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bx
jne 0x43c7b1
lea ecx, [edi + 0xc02]
lea esi, [eax + 0xc02]
sub esi, ecx
mov edi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bx
jne 0x43c7d0
lea ecx, [edi + 0x1002]
lea esi, [eax + 0x1002]
sub esi, ecx
lea ecx, [ecx]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bx
jne 0x43c7f0
mov esi, eax
mov ecx, edi
sub esi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bx
jne 0x43c805
mov ecx, dword [ebp - 0xc38]
mov esi, dword [ebp - 0xc34]
cmp ecx, 2
push ecx
push eax
mov eax, dword [esi]
push 0x5f4
sete dl
push eax
mov byte [0x4fbf65], dl
call dword [sym.imp.USER32.dll_PostMessageW]
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.0049f71b
mov esp, ebp
pop ebp
ret
push 0x206
lea ecx, [ebp - 0x422]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0xc48], ebx
mov word [ebp - 0x424], ax
call fcn.0049eae0
add esp, 0xc
lea edx, [ebp - 0xc3c]
push edx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0xc48]
push ecx
mov dword [ebp - 0xc3c], 0x104
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
jmp 0x43c749