Function at 0x4ca5c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528ca6
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 0x4ca86e
call fcn.004bce40
test al, al
je 0x4ca86e
mov esi, dword [esi + 4]
push esi
lea ecx, [ebp - 0x194]
call fcn.004bd040
push 4
push 2
mov dword [ebp - 4], ebx
push str.CALL_spIPFltGetBlockCountryCodeList
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 0x4ca85c
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x4ca676
push eax
call fcn.004f503d
add esp, 4
cmp dword [ebp - 0xcc], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jne 0x4ca821
jmp 0x4ca690
push str.CountryCode3
lea ecx, [ebp - 0x194]
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
mov edi, 1
cmp ecx, edi
mov byte [ebp - 4], 5
jle 0x4ca6d7
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
cmp cl, bl
jne 0x4ca6e0
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 0x4ca714
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.RoutingURL
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, edi
mov byte [ebp - 4], 6
jle 0x4ca756
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 ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4ca760
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 0x4ca794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.IsBlock
lea ecx, [ebp - 0x194]
call fcn.004bec20
mov ecx, dword [ebp - 0x84]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
call fcn.004bdac0
push 0x3c
mov byte [ebp - 0x58], al
call fcn.004f5012
add esp, 4
mov dword [ebp - 0x50], eax
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x4ca7e2
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, eax
call fcn.004c9e90
jmp 0x4ca7e4
xor eax, eax
cmp eax, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], eax
je 0x4ca88b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call fcn.004c94c0
mov edx, dword [ebp - 0x194]
push edi
push edi
lea ecx, [ebp - 0x194]
call dword [edx + 0x14]
cmp dword [ebp - 0xcc], ebx
je 0x4ca690
mov edi, 0xf
mov eax, dword [ebp - 0x34]
mov esi, 0x10
cmp eax, esi
jb 0x4ca839
mov edx, dword [ebp - 0x48]
push edx
call fcn.004f503d
add esp, 4
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x4ca853
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f503d
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
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 edi, 0x10
cmp eax, edi
jb 0x4ca8a3
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f503d
add esp, 4
cmp dword [ebp - 0x18], edi
mov esi, 0xf
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x4ca8c2
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f503d
add esp, 4
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
call fcn.004bd2d0
xor al, al
jmp 0x4ca870