Function at 0x1001774d
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x100759a3
call fcn.100750ac
sub esp, 0x9c
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], ecx
je 0x10017bc9
push 1
pop edi
push 0
mov dword [ebp + 8], 0x61928c17
mov dword [ebp + 8], 0xfffffffd
pop ebx
jmp 0x100177e5
push edi
lea ecx, [ebp - 0x68]
call fcn.10015404
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jmp 0x100177aa
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0x5d811f07
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1001779a
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
imul edx, dword [ebp + 8], 0xffffbffa
neg edx
sbb edx, edx
imul eax, dword [ebp - 0x14], 0xfffffff9
xor ecx, ecx
inc edx
cmp eax, edx
setne cl
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x68]
call fcn.10015486
dec dword [ebp + 8]
cmp dword [ebp + 8], 0xfffffff2
jge 0x10017786
mov dword [ebp - 0x10], 0xfe7d8a87
lea ecx, [ebp - 0x98]
push 2
call fcn.10015404
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x4c3f4f88
mov dword [ebp + 8], ebx
jmp 0x1001781f
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0xa8], 7
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
jl 0x1001780e
mov dword [ebp + 8], ebx
jmp 0x10017839
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x98]
mov dword [eax + ecx*4], edi
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x1001782a
push 3
mov dword [ebp - 0x10], ebx
pop esi
jmp 0x1001793e
mov dword [ebp + 8], ebx
jmp 0x1001785d
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x5c], 0x4b25b3b9
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
jl 0x1001784f
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0xa8], ebx
jne 0x10017947
mov dword [ebp - 0x58], esi
cmp dword [ebp - 0x58], ebx
jl 0x1001793b
mov dword [ebp - 0x14], 0x951ea66e
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], ebx
jl 0x1001791f
push esi
lea ecx, [ebp - 0x80]
call fcn.10015404
mov dword [ebp + 8], ebx
jmp 0x100178af
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x80]
mov dword [eax + ecx*4], 6
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
jl 0x1001789f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x18], eax
mov dword [eax + 4], ebx
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x100178e7
push 0x282
push ebx
push ebx
push 0x46
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov eax, dword [ebp - 0x18]
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x10017906
push ebx
push ebx
push 0x8dc
push 0x18ea
push ebx
call dword [sym.imp.USER32.dll_InsertMenuA]
mov eax, dword [ebp - 0x18]
inc dword [eax + 4]
cmp dword [eax + 4], esi
jle 0x100178bd
lea ecx, [ebp - 0x80]
call fcn.10015486
dec dword [ebp - 0x14]
jns 0x10017891
mov eax, dword [ebp - 0x98]
mov dword [eax], 7
mov dword [ebp - 0x14], 0x131d
dec dword [ebp - 0x58]
jns 0x1001787e
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jle 0x1001784a
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], ebx
jl 0x10017977
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x10017972
push 0x1603
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_Polygon]
dec dword [ebp - 0x14]
jns 0x1001794f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.10015486
mov dword [ebp - 0x10], 0x477862f
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x1001799d
push ebx
call dword [sym.imp.USER32.dll_DestroyCursor]
mov dword [ebp - 0x10], 0x12
jmp 0x100179ce
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x100179c6
push 0x19f3
push 0x1e76
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnableScrollBar]
cmp dword [ebp - 0x10], ebx
jne 0x100179d3
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jg 0x100179a6
mov dword [ebp + 8], 0xfffffff8
mov dword [ebp - 0x18], 0xc0aa39ed
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x100179f5
push 0x113
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp + 8], 7
jmp 0x10017a08
mov dword [ebp - 0x18], 0x22124f84
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc
jl 0x100179fe
mov dword [ebp + 8], ebx
jmp 0x10017a21
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x40], 0x17571177
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x10017a13
mov dword [ebp + 8], ebx
jmp 0x10017a35
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x2c], ebx
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
jl 0x10017a2b
mov dword [ebp - 0x28], ebx
jmp 0x10017a4d
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x40], 4
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], edi
jl 0x10017a3f
push 2
lea ecx, [ebp - 0x4c]
call fcn.10015404
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0xffb871c7
mov dword [ebp + 8], ebx
jmp 0x10017a7b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0xa684
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x10017a6b
mov dword [ebp - 0x10], ebx
jmp 0x10017b92
mov dword [ebp - 0x14], 0x440e708b
xor ecx, ecx
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + eax*4]
inc eax
cmp eax, 0x145ba13b
setg cl
cmp dword [edx + esi*4], ecx
jle 0x10017adf
mov dword [ebp + 8], 0xd976
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], ebx
jne 0x10017b9b
jmp 0x10017b8f
push edi
lea ecx, [ebp - 0x38]
call fcn.10015404
mov dword [ebp + 8], 0x75278539
mov dword [ebp + 8], 0xf96354d1
mov dword [ebp + 8], ebx
jmp 0x10017b0b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [eax + ecx*4], 0xad31
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jl 0x10017afb
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x38]
sub ecx, dword [eax]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
mov eax, dword [ebp - 0x38]
setge dl
xor ecx, ecx
cmp edx, 4
setl cl
xor edx, edx
cmp ecx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
setge dl
xor ebx, ebx
cmp edx, 0x4174aa7f
setg bl
xor edx, edx
cmp dword [eax], ecx
mov eax, dword [ebp - 0x38]
setle dl
sub edx, ebx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp dword [eax], edx
setge cl
xor ebx, ebx
mov dword [ebp + 8], ecx
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10017b87
push 0x2670
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [ebp - 0x38]
call fcn.10015486
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jle 0x10017a89
lea ecx, [ebp - 0x4c]
call fcn.10015486
mov edx, dword [ebp - 0x50]
mov dword [edx], ebx
cmp dword [edx], edi
jge 0x10017d43
mov esi, dword [ebp - 0x3c]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x1713b910
inc dword [edx]
cmp dword [edx], edi
jl 0x10017bb3
jmp 0x10017d43
mov dword [ebp - 0x10], 0x2cb13638
xor ebx, ebx
mov dword [ebp - 0x14], 7
mov dword [ebp + 8], ebx
jmp 0x10017bec
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x20], 0x3342eb9
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x10017bde
xor edi, edi
inc edi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], ebx
jl 0x10017c2c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x20]
cmp eax, 0x565e
sete cl
xor eax, eax
cmp ecx, 8
setge al
mov dword [ebp - 0x14], eax
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10017c27
call dword [sym.imp.USER32.dll_CreatePopupMenu]
dec dword [ebp - 0x10]
jns 0x10017bfd
mov dword [ebp - 0x14], 0x15
cmp dword [ebp - 0x14], 0x23
jle 0x10017d33
push 3
pop esi
mov dword [ebp + 8], 0xb4ef66b1
lea ecx, [ebp - 0x8c]
push esi
call fcn.10015404
push 2
pop eax
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], eax
call fcn.10015404
mov dword [ebp + 8], ebx
jmp 0x10017c7a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x8c]
mov dword [eax + ecx*4], 0x82f
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
jl 0x10017c67
mov dword [ebp + 8], ebx
jmp 0x10017c94
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x74]
mov dword [eax + ecx*4], 0x65835a7a
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x10017c84
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], edi
jg 0x10017d0f
mov edx, dword [ebp - 0x74]
mov dword [ebp + 8], 0x6c21
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x20]
cmp dword [ebp + 8], eax
je 0x10017cf7
mov eax, dword [ebp - 0x8c]
mov ecx, ebx
cmp dword [eax + 4], ebx
je 0x10017cf9
mov ecx, edi
xor eax, eax
cmp ecx, 0xd258
setge al
mov dword [edx + 4], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jle 0x10017ca5
lea ecx, [ebp - 0x74]
call fcn.10015486
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.10015486
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x23
jg 0x10017c40
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x10017d43
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret