Function at 0x4ca320
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528c66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [0x566450]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
xor edi, edi
cmp ecx, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
je 0x4ca5ac
call fcn.004bce40
test al, al
je 0x4ca5ac
mov esi, dword [esi + 4]
push esi
lea ecx, [ebp - 0x170]
call fcn.004bd040
push 4
push 2
mov dword [ebp - 4], edi
push str.CALL_spIPFltGetIPtoCountryList
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 1
call fcn.004bd120
lea ecx, [ebp - 0x170]
mov dword [ebp - 4], edi
call fcn.004ce327
test eax, eax
je 0x4ca547
cmp dword [ebp - 0xa8], edi
jne 0x4ca547
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00414a90
push 0x186a0
mov ecx, esi
call fcn.004c9150
cmp dword [ebp - 0xa8], edi
jne 0x4ca527
jmp 0x4ca3f0
push str.IPFrom
lea ecx, [ebp - 0x170]
call fcn.004bec20
mov ecx, dword [ebp - 0x60]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
call fcn.004bd3f0
push str.IPTo
lea ecx, [ebp - 0x170]
mov edi, eax
call fcn.004bec20
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x60]
lea ecx, [eax + edx*8]
call fcn.004bd3f0
push str.CountryCode3
lea ecx, [ebp - 0x170]
mov ebx, eax
call fcn.004bec20
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [eax + edx*8]
call fcn.004bece0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, 1
mov byte [ebp - 4], 4
jle 0x4ca470
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401b25
mov esi, dword [esi]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ca477
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0040363a
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ca4ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x24
call fcn.004f5012
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
test esi, esi
mov byte [ebp - 4], 5
je 0x4ca4eb
push 0xffffffffffffffff
lea ecx, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], ebx
push 0
lea eax, [ebp - 0x30]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.004035ab
jmp 0x4ca4ed
xor esi, esi
test esi, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], esi
je 0x4ca576
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004c94c0
mov edx, dword [ebp - 0x170]
push 1
push 1
lea ecx, [ebp - 0x170]
call dword [edx + 0x14]
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x4ca3f0
xor edi, edi
cmp dword [ebp - 0x18], 0x10
jb 0x4ca539
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f503d
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x170]
mov dword [ebp - 4], 0xffffffff
call fcn.004bd2d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004da561
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x18], 0x10
jb 0x4ca588
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f503d
add esp, 4
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004bd2d0
xor al, al
jmp 0x4ca55b