Function at 0x1004f556
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1006dfc3
call fcn.1006c8f0
sub esp, 0x38
mov dword [ebp - 0x18], 0x1f7e2799
mov eax, ecx
mov ecx, 0x8ae505b0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
push ebx
mov dword [ebp - 0x3c], ecx
xor ebx, ebx
mov dword [ebp - 0x38], ecx
push esi
push edi
mov dword [ebp - 0x28], 3
xor edi, edi
mov dword [ebp - 0x24], 0x4e630971
inc edi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 0xa
mov dword [ebp - 0x10], esp
je 0x1004f66d
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 9
mov dword [ebp - 0x20], ebx
jmp 0x1004f5c7
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x34], 0x55e97312
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 2
jl 0x1004f5b9
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1004f5dc
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
cmp eax, 0x74b6046e
mov eax, dword [ebp - 0x18]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setge dl
xor ecx, ecx
cmp edx, eax
setle cl
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
neg esi
sbb esi, esi
xor ecx, ecx
neg esi
dec dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
sub esi, eax
add esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
cmp edx, eax
mov eax, dword [ebp - 0x24]
sete cl
xor edx, edx
cmp ecx, esi
setge dl
xor ecx, ecx
cmp eax, edx
setge cl
imul ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp eax, edi
setg cl
xor eax, eax
cmp ecx, 0xfffffffa
setne al
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xa
jne 0x1004f5a6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1002e590
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ebx
jmp 0x1004f693
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x1c], 0x7a888ada
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], edi
jl 0x1004f685
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1004f6b1
push 0x403
push 0x7d3
push ebx
call dword [sym.imp.GDI32.dll_PtInRegion]
cmp dword [ebp - 0x1c], ebx
jne 0x1004f720
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, 0xe652
mov eax, dword [ebp - 0x1c]
setle cl
add eax, ecx
xor ecx, ecx
cmp eax, 0x246c382
mov eax, dword [ebp - 0x1c]
setne cl
xor edx, edx
dec ecx
cmp ecx, 0xffff
setne dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x1c]
setg cl
xor edx, edx
add eax, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
setge dl
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub edx, eax
mov eax, dword [ebp - 0x1c]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [ebp - 0x1c]
setl cl
sub ecx, eax
jne 0x1004f720
mov edi, ebx
mov eax, dword [ebp - 0x1c]
add eax, edi
mov dword [ebp - 0x18], eax
je 0x1004f77b
cmp dword [ebp - 0x18], ebx
je 0x1004f77b
mov dword [ebp - 0x20], ebx
jmp 0x1004f761
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
jl 0x1004f75e
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1004f752
push 0x1c73
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x1c]
dec dword [ebp - 0x18]
jns 0x1004f73c
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 4
jg 0x1004f734
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1004f767
mov dword [ebp - 0x18], 0x66ec
cmp dword [ebp - 0x18], 0x6782
jle 0x1004f800
call dword [sym.imp.USER32.dll_DestroyCaret]
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov eax, ebx
mov dword [ebp - 0x20], 0x3e1
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
and eax, edi
mov ecx, 0x106150f8
and eax, esi
cdq
push edx
push eax
call fcn.100167bf
mov eax, dword [ebp - 0x24]
add eax, ebx
dec dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jne 0x1004f7af
inc ebx
push 0
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xe47
pop ebx
jl 0x1004f7a0
inc edi
cmp edi, 0xfc9
jl 0x1004f79d
inc esi
cmp esi, 0x668c
jl 0x1004f79b
push ebx
push ebx
push 0x46d
push 0x1292
call dword [sym.imp.USER32.dll_PostMessageA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x6628
jge 0x1004f767
mov edx, 0x10009030
mov ecx, 0x106150f8
call fcn.10019698
jmp 0x1004f767