Function at 0x4591f0
Capabilities:
Check internet connectivity via wininet
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd6be
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xdc], edi
mov byte [ebx + 0xa8d], 1
cmp dword [ebx + 0x8d4], eax
je 0x45927d
mov esi, dword [ebx + 0x8d8]
mov dword [ebx + 0x8d4], eax
mov dword [ebx + 0x8d8], eax
test esi, esi
je 0x45927d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x459277
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x459277
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0xdc]
cmp byte [ebx + 0xbd], 0
jne 0x459321
push 0x380
call fcn.004ece2f
add esp, 4
mov dword [ebp - 0xdc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4592bf
mov edx, ebx
lea ecx, [ebx + 0x64]
neg edx
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call fcn.00438470
mov esi, eax
jmp 0x4592c1
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
push 0
mov dword [ebp - 4], 0xffffffff
call dword [eax + 4]
push edi
mov ecx, esi
call fcn.00438d70
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x459321
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x477
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 4]
test eax, eax
jne 0x459315
mov dword [ebx + 0x40], eax
jmp 0x459321
push 0
push 0
push 0x465
push eax
call esi
mov eax, dword [ebx + 0xb4]
push str.____DUMP_________________n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
add esp, 8
lea eax, [ebp - 0xd0]
push eax
call fcn.00494490
mov ecx, eax
call fcn.00494160
cmp dword [eax + 0x10], 0
mov dword [ebp - 4], 1
jne 0x45935c
mov edx, 0x5de8c4
jmp 0x459385
lea eax, [ebp - 0x70]
push eax
call fcn.00494490
mov ecx, eax
call fcn.00494160
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov eax, 1
mov byte [ebp - 4], 2
mov dword [ebp - 0xd8], eax
jb 0x459385
mov edx, dword [edx]
mov eax, dword [ebx + 0xb4]
push edx
push str.Lang_t_t:__s_n
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xd8]
add esp, 0xc
test al, 1
je 0x4593b5
and eax, 0xfffffffe
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xd8], eax
call fcn.00419a70
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0xffffffff
call fcn.00419a70
lea eax, [ebp - 0x70]
push eax
call fcn.00494490
mov ecx, eax
call fcn.00493e90
cmp dword [eax + 0x10], 0
mov dword [ebp - 4], 3
jne 0x4593eb
mov edx, 0x5de8c4
jmp 0x459413
lea eax, [ebp - 0xd0]
push eax
call fcn.00494490
mov ecx, eax
call fcn.00493e90
mov edx, eax
or dword [ebp - 0xd8], 2
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x459413
mov edx, dword [edx]
mov eax, dword [ebx + 0xb4]
push edx
push str.Country_t:__s_n
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xd8]
add esp, 0xc
test al, 2
je 0x45943d
lea ecx, [ebp - 0xd0]
call fcn.00419a70
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.00419a70
mov esi, dword [ebx + 0xb4]
lea ecx, [ebx + 0x64]
mov eax, dword [ecx]
mov edi, dword [esi]
call dword [eax + 0x4c]
push eax
push str.Version_t:__s_n
push esi
call dword [edi + 8]
add esp, 0xc
push 0
push 1
push str.http:__www.google.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x459490
mov eax, dword [ebx + 0xb4]
push str.Cant_establish_internet_connection_n
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
add esp, 8
push 0
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4595a8
mov eax, dword [ebx + 0xb4]
push dword [ebp - 0xd4]
push str.Internet_connection_state_t:_0x_06x_n
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test byte [ebp - 0xd4], 0x40
mov esi, str.TRUE
mov ecx, dword [ebx + 0xb4]
mov eax, esi
mov edi, str.FALSE
cmove eax, edi
push eax
mov edx, dword [ecx]
push str.INTERNET_CONNECTION_CONFIGURED
push str._t_s:_t:_s_n
push ecx
call dword [edx + 8]
test byte [ebp - 0xd4], 2
mov eax, esi
mov ecx, dword [ebx + 0xb4]
cmove eax, edi
push eax
push str.INTERNET_CONNECTION_LAN
mov edx, dword [ecx]
push str._t_s:_t:_s_n
push ecx
call dword [edx + 8]
test byte [ebp - 0xd4], 1
mov eax, esi
mov ecx, dword [ebx + 0xb4]
cmove eax, edi
push eax
push str.INTERNET_CONNECTION_MODEM
mov edx, dword [ecx]
push str._t_s:_t:_s_n
push ecx
call dword [edx + 8]
test byte [ebp - 0xd4], 8
mov eax, esi
mov ecx, dword [ebx + 0xb4]
cmove eax, edi
push eax
push str.INTERNET_CONNECTION_MODEM_BUSY
mov edx, dword [ecx]
push str._t_s:_t:_s_n
push ecx
call dword [edx + 8]
mov ecx, dword [ebx + 0xb4]
add esp, 0x4c
test byte [ebp - 0xd4], 0x20
mov eax, esi
cmove eax, edi
mov edx, dword [ecx]
push eax
push str.INTERNET_CONNECTION_OFFLINE
push str._t_s:_t:_s_n
push ecx
call dword [edx + 8]
test byte [ebp - 0xd4], 4
mov eax, dword [ebx + 0xb4]
cmove esi, edi
push esi
push str.INTERNET_CONNECTION_PROXY
mov ecx, dword [eax]
push str._t_s:_t:_s_n
push eax
call dword [ecx + 8]
add esp, 0x20
mov eax, dword [ebx + 0xb4]
push str.____DUMP_________________n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
add esp, 8
mov dword [ebp - 0xdc], 5
lea eax, [ebp - 0xdc]
lea ecx, [ebx + 0xf4c]
push eax
call fcn.004491f0
cmp dword [ebx + 0x2a0], 0
jne 0x459606
cmp byte [ebx + 0x2bb], 0
je 0x459606
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0xb
push eax
lea ecx, [ebx + 0xf4c]
call fcn.004491f0
mov ecx, ebx
call fcn.004656c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 4