Function at 0x4ca8f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528ce6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
mov eax, dword [0x566450]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
je 0x4cac6b
call fcn.004bce40
test al, al
je 0x4cac6b
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4ca94b
push eax
call fcn.004f503d
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 4]
push eax
lea ecx, [ebp - 0x194]
call fcn.004bd040
push 4
push 2
mov dword [ebp - 4], ebx
push str.CALL_spIPFltGetCustomIPList
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 1
call fcn.004bd120
lea ecx, [ebp - 0x194]
mov dword [ebp - 4], ebx
call fcn.004ce327
test eax, eax
je 0x4cabe4
cmp dword [ebp - 0xcc], ebx
jne 0x4cabe4
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 4
lea ecx, [ecx]
push str.IPFrom
lea ecx, [ebp - 0x194]
call fcn.004bec20
mov ecx, dword [ebp - 0x84]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
call fcn.004bd3f0
push str.IPTo
lea ecx, [ebp - 0x194]
mov edi, eax
call fcn.004bec20
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x84]
lea ecx, [eax + edx*8]
call fcn.004bd3f0
push str.IsBlock
lea ecx, [ebp - 0x194]
mov ebx, eax
call fcn.004bec20
mov edx, dword [ebp - 0x84]
lea ecx, [eax + eax*2]
lea ecx, [edx + ecx*8]
call fcn.004bd670
test eax, eax
setne al
push str.CountryCode3
lea ecx, [ebp - 0x194]
mov byte [ebp - 0x58], al
call fcn.004bec20
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x5c]
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], 5
jle 0x4caa72
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401b25
mov esi, dword [esi]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4caa80
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0040363a
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4caab4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Comment
lea ecx, [ebp - 0x194]
call fcn.004bec20
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x54]
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], 6
jle 0x4caaf7
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 edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cab00
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040363a
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cab34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x44
call fcn.004f5012
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
mov byte [ebp - 4], 7
je 0x4cab60
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x30]
push edx
push ecx
push ebx
push edi
mov ecx, eax
call fcn.004c8f60
jmp 0x4cab62
xor eax, eax
test eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], eax
je 0x4cac13
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x50]
push edx
call fcn.004c94c0
mov eax, dword [ebp - 0x194]
push 1
push 1
lea ecx, [ebp - 0x194]
call dword [eax + 0x14]
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x4ca9c0
mov eax, dword [ebp - 0x34]
mov ebx, 0x10
cmp eax, ebx
jb 0x4cabb6
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f503d
add esp, 4
mov eax, dword [ebp - 0x18]
xor esi, esi
cmp eax, ebx
mov edi, 0xf
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
jb 0x4cabda
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f503d
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x194]
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
mov eax, dword [ebp - 0x34]
mov ebx, 0x10
cmp eax, ebx
jb 0x4cac2b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004f503d
add esp, 4
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, ebx
mov esi, 0xf
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
jb 0x4cac4f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f503d
add esp, 4
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004bd2d0
xor al, al
jmp 0x4cabf8