Function at 0x40ca3e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
mov ebx, 0x104
call fcn.004389e0
add esp, 4
mov dword [ebp - 4], eax
push 0x47de91
push dword [ebp - 4]
mov ecx, 2
call fcn.00401212
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ca84
push ebx
call fcn.0043795f
add esp, 4
push reloc.WS2_32.dll_connect
push 0
push 0x47dea9
push reloc.WS2_32.dll_connect
push 0
push 0x47ded5
push reloc.WS2_32.dll_connect
push 0
push 0x47dedc
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40cabb
mov eax, 0x46e036
push eax
push 4
mov ebx, 0x8cc
call fcn.0043ade0
add esp, 0x34
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40cade
push ebx
call fcn.0043795f
add esp, 4
push 0
mov ebx, 0x104
call fcn.004389e0
add esp, 4
mov dword [ebp - 4], eax
push 0x47deeb
push dword [ebp - 4]
mov ecx, 2
call fcn.00401212
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40cb1b
push ebx
call fcn.0043795f
add esp, 4
push htons
push 0
push 0x47df18
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40cb3a
mov eax, 0x46e036
push eax
push 2
mov ebx, 0x26c
call fcn.0043a1c0
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40cb5d
push ebx
call fcn.0043795f
add esp, 4
push 0
mov ebx, 0x104
call fcn.004389e0
add esp, 4
mov dword [ebp - 4], eax
push 0x485f20
push dword [ebp - 4]
mov ecx, 2
call fcn.00401212
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40cb9a
push ebx
call fcn.0043795f
add esp, 4
push htons
push 0
push 0x485f3c
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40cbb9
mov eax, 0x46e036
push eax
push 2
mov ebx, 0x26c
call fcn.0043a1c0
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40cbdc
push ebx
call fcn.0043795f
add esp, 4
push 0
mov ebx, 0x104
call fcn.004389e0
add esp, 4
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40cc04
mov eax, 0x46e036
push eax
push 1
mov ebx, 0x22c
call fcn.00438b30
add esp, 0x10
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40cc27
push ebx
call fcn.0043795f
add esp, 4
cmp dword [0x13dcac3], 1
je 0x40cc57
push 0x47dc84
push dword [0x13dcac7]
call fcn.0040110a
add esp, 8
cmp eax, 0
jne 0x40cc57
mov eax, 1
jmp 0x40cc59
xor eax, eax
test eax, eax
je 0x40cca1
push reloc.WS2_32.dll_connect
push 0
push 0x48616c
push 0x80000301
push 0
push 0x40
push reloc.WS2_32.dll_connect
push 0
push 0x486171
push 3
mov ebx, 0x300
call fcn.0043a890
add esp, 0x28
mov dword [0x13dcac3], 1
push 0
mov ebx, 0x104
call fcn.004389e0
add esp, 4
mov dword [ebp - 4], eax
push 0x4861ce
push dword [ebp - 4]
mov ecx, 2
call fcn.00401212
add esp, 8
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ccde
push ebx
call fcn.0043795f
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40ccf1
mov eax, 0x46e036
push eax
push 1
mov ebx, 0x24c
call fcn.00438af0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40cd17
push ebx
call fcn.0043795f
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x40cd5c
push reloc.WS2_32.dll_connect
push 0
push 0x4861d8
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
push 0x4861dd
push 3
mov ebx, 0x300
call fcn.0043a890
add esp, 0x28
jmp 0x40cec1
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x486213
push 3
mov ebx, 0x2c0
call fcn.00438b40
add esp, 0x28
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40cdd4
push reloc.WS2_32.dll_connect
push 0
push 0x4861d8
push 0x80000301
push 0
push 0x40
push reloc.WS2_32.dll_connect
push 0
push 0x48621c
push 3
mov ebx, 0x300
call fcn.0043a890
add esp, 0x28
jmp 0x40cec1
push 0x47dc84
push dword [0x13dcac7]
call fcn.0040110a
add esp, 8
cmp eax, 0
jne 0x40ce8f
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
mov eax, 0x48623c
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040cec7
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ce20
push ebx
call fcn.0043795f
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x40ce5f
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x48623c
push 3
mov ebx, 0x2c0
call fcn.00438b40
add esp, 0x28
jmp 0x40ce8f
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x486245
push 3
mov ebx, 0x300
call fcn.0043a890
add esp, 0x28
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x13dc9bf]
test eax, eax
jne 0x40cea4
mov eax, 0x46e036
push eax
push 1
mov ebx, 0x244
call fcn.00438b00
add esp, 0x10
push 0
call fcn.00437947
add esp, 4
mov esp, ebp
pop ebp
ret 0xc