Function at 0x40a650
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4925d3
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x4ae498]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2f0], ebx
mov ecx, dword [esp + 0x2fc]
cmp ecx, ebx
jne 0x40a6a9
push 0x80004003
call fcn.0042f360
lea eax, [esp + 0x68]
push eax
call fcn.00407650
mov byte [esp + 0x2f0], 1
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x40a6d6
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea ecx, [esp + 0x24]
call fcn.0040f3a0
cmp eax, ebx
jge 0x40a6f0
cmp eax, 0x80004002
je 0x40a6f0
push eax
call fcn.0042f360
mov byte [esp + 0x2f0], 3
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x40a708
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x24]
push eax
push 0x49d9cc
push 3
push ebx
push 0x49cdd4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40a908
push 5
mov esi, 0xf
push str.error
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.004022c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2f0], 4
mov ebp, dword [esp + 0x20]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ebp
cmp ebp, ebx
je 0x40a770
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004085e0
add esp, 0xc
mov byte [esp + 0x2f0], 6
cmp dword [esp + 0x64], 0x10
jb 0x40a799
mov edx, dword [esp + 0x50]
push edx
call fcn.0046a6fc
add esp, 4
push 8
xor eax, eax
mov edi, 7
push str.internal
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
call fcn.00402740
mov byte [esp + 0x2f0], 7
xor ecx, ecx
push 2
mov word [esp + 0x88], cx
push 0x49d0a0
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
call fcn.00402740
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x84]
push eax
push ecx
mov byte [esp + 0x2fc], 8
mov dword [esp + 0x28], esp
mov esi, esp
push ecx
mov dword [esi], ebx
mov ecx, dword [esp + 0x24]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], esp
cmp eax, ebx
je 0x40a837
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.0040f420
cmp eax, ebx
jge 0x40a84f
cmp eax, 0x80004002
je 0x40a84f
push eax
call fcn.0042f360
lea ecx, [esp + 0x24]
push ecx
call fcn.00407b90
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40a86c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov esi, 8
cmp dword [esp + 0x98], esi
jb 0x40a88a
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0046a6fc
add esp, 4
xor edx, edx
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], dx
cmp dword [esp + 0x48], esi
jb 0x40a8b5
mov eax, dword [esp + 0x34]
push eax
call fcn.0046a6fc
add esp, 4
mov byte [esp + 0x2f0], 3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40a8cd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2f0], bl
cmp ebp, ebx
je 0x40a8e1
mov eax, dword [ebp]
push ebp
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x2f0], 0xffffffff
mov eax, dword [esp + 0x2fc]
cmp eax, ebx
je 0x40b1ff
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40b1ff
mov ecx, dword [0x49cd24]
mov eax, dword [0x49cd2c]
mov edx, dword [0x49cd28]
mov dword [esp + 0x9c], ecx
mov ecx, dword [0x49cd30]
push 1
mov dword [esp + 0xac], ecx
push 1
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xa4]
push ecx
mov dword [esp + 0xac], edx
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push ebx
push eax
call edx
test eax, eax
mov eax, dword [esp + 0x24]
jge 0x40ab23
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 5
mov esi, 0xf
push str.error
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.004022c0
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x2f4], 9
mov edi, dword [esp + 0x24]
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], edi
cmp edi, ebx
je 0x40a9be
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea eax, [esp + 0x1c]
push eax
call fcn.004085e0
add esp, 0xc
mov byte [esp + 0x2f0], 0xb
cmp dword [esp + 0x98], 0x10
jb 0x40a9ed
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0046a6fc
add esp, 4
push 0xc
xor edx, edx
mov ebp, 7
push str.accessDenied
lea ecx, [esp + 0x38]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
call fcn.00402740
mov byte [esp + 0x2f0], 0xc
push 2
xor eax, eax
push 0x49d0a0
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], ax
call fcn.00402740
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push ecx
mov byte [esp + 0x2fc], 0xd
mov dword [esp + 0x28], esp
mov esi, esp
push ecx
mov dword [esi], ebx
mov ecx, dword [esp + 0x24]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], esp
cmp eax, ebx
je 0x40aa85
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.0040f420
cmp eax, ebx
jge 0x40aa9d
cmp eax, 0x80004002
je 0x40aa9d
push eax
call fcn.0042f360
lea ecx, [esp + 0x24]
push ecx
call fcn.00407b90
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40aaba
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x40aad2
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0046a6fc
add esp, 4
xor edx, edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], dx
cmp dword [esp + 0x48], esi
jb 0x40aaf4
mov eax, dword [esp + 0x34]
push eax
call fcn.0046a6fc
add esp, 4
mov byte [esp + 0x2f0], 3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ab0c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2f0], bl
cmp edi, ebx
je 0x40a8e1
mov eax, dword [edi]
push edi
jmp 0x40a8dc
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x2c]
push ecx
push edx
push 0x49cd24
push eax
call fcn.00451de0
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x40acc5
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.internal
lea ecx, [esp + 0x84]
call fcn.00401de0
mov byte [esp + 0x2f0], 0xe
cmp esi, 0x80010115
jne 0x40ab86
push str.timeout
lea ecx, [esp + 0x84]
call fcn.004021d0
push str.error
lea ecx, [esp + 0x34]
call fcn.00401d70
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2f4], 0xf
mov esi, dword [esp + 0x24]
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], esi
cmp esi, ebx
je 0x40abba
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
lea eax, [esp + 0x1c]
push eax
call fcn.004085e0
add esp, 0xc
mov byte [esp + 0x2f0], 0x11
cmp dword [esp + 0x48], 0x10
jb 0x40abe3
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0046a6fc
add esp, 4
push 0x49d0a0
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00401de0
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x300], 0x12
call fcn.0040f2e0
lea eax, [esp + 0x24]
push eax
call fcn.00407b90
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40ac44
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, 8
cmp dword [esp + 0x64], edi
jb 0x40ac5c
mov eax, dword [esp + 0x50]
push eax
call fcn.0046a6fc
add esp, 4
mov byte [esp + 0x2f0], 0xe
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ac74
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x98], edi
jb 0x40ac8d
mov eax, dword [esp + 0x84]
push eax
call fcn.0046a6fc
add esp, 4
xor ecx, ecx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], cx
mov byte [esp + 0x2f0], bl
cmp esi, ebx
je 0x40b1e1
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
jmp 0x40b1e1
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2f0], 0x13
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x49d9dc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x40ae1e
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.error
lea ecx, [esp + 0x34]
call fcn.00401d70
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2f4], 0x14
mov esi, dword [esp + 0x24]
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], esi
cmp esi, ebx
je 0x40ad3a
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
lea eax, [esp + 0x1c]
push eax
call fcn.004085e0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f0], 0x16
call fcn.00401db0
push str.internal
lea ecx, [esp + 0x50]
call fcn.00401de0
push 0x49d0a0
lea ecx, [esp + 0x84]
mov byte [esp + 0x2f4], 0x17
call fcn.00401de0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x84]
push edx
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x300], 0x18
call fcn.0040f2e0
lea ecx, [esp + 0x24]
push ecx
call fcn.00407b90
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40adc2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x80]
call fcn.00401e50
lea ecx, [esp + 0x4c]
call fcn.00401e50
mov byte [esp + 0x2f0], 0x13
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40adef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2f0], 3
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40ae07
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2f0], bl
cmp esi, ebx
je 0x40a8e1
mov eax, dword [esi]
push esi
jmp 0x40a8dc
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jge 0x40af39
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.error
lea ecx, [esp + 0x34]
call fcn.00401d70
lea eax, [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x2fc], 0x19
call fcn.0040ef80
lea eax, [esp + 0x1c]
push eax
call fcn.004085e0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f0], 0x1b
call fcn.00401db0
push str.internal
lea ecx, [esp + 0x50]
call fcn.00401de0
push 0x49d0a0
lea ecx, [esp + 0x84]
mov byte [esp + 0x2f4], 0x1c
call fcn.00401de0
mov byte [esp + 0x2f0], 0x1d
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x84]
push edx
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0040f2e0
lea ecx, [esp + 0x24]
push ecx
call fcn.00407b90
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40af03
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x80]
call fcn.00401e50
lea ecx, [esp + 0x4c]
call fcn.00401e50
mov byte [esp + 0x2f0], 0x13
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b1b2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40b1b2
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x70]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x40afe8
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.error
lea ecx, [esp + 0x34]
call fcn.00401d70
lea eax, [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x2fc], 0x1e
call fcn.0040ef80
lea eax, [esp + 0x1c]
push eax
call fcn.004085e0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f0], 0x20
call fcn.00401db0
push str.internal
lea ecx, [esp + 0x50]
call fcn.00401de0
push 0x49d0a0
lea ecx, [esp + 0x84]
mov byte [esp + 0x2f4], 0x21
call fcn.00401de0
mov byte [esp + 0x2f0], 0x22
jmp 0x40aec8
fld qword [esp + 0x78]
sub esp, 8
fstp qword [esp]
push 0x49dee0
lea edx, [esp + 0xf0]
call fcn.00406ac0
add esp, 0xc
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0xb0]
call fcn.00401de0
mov byte [esp + 0x2f0], 0x23
fld qword [esp + 0x70]
sub esp, 8
fstp qword [esp]
push 0x49dee0
lea edx, [esp + 0xf0]
call fcn.00406ac0
add esp, 0xc
lea ecx, [esp + 0xe4]
push ecx
lea ecx, [esp + 0xcc]
call fcn.00401de0
push str.latitude
lea ecx, [esp + 0x34]
mov byte [esp + 0x2f4], 0x24
call fcn.00401de0
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x300], 0x25
call fcn.0040f2e0
lea eax, [esp + 0x24]
push eax
call fcn.00407b90
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40b0ad
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f0], 0x24
call fcn.00401e50
push str.longitude
lea ecx, [esp + 0x34]
call fcn.00401de0
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x34]
push ecx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x300], 0x26
call fcn.0040f2e0
lea eax, [esp + 0x24]
push eax
call fcn.00407b90
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x40b10f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f0], 0x24
call fcn.00401e50
push str.stub
lea ecx, [esp + 0x34]
call fcn.00401d70
lea eax, [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x2fc], 0x27
call fcn.0040ef80
lea eax, [esp + 0x74]
push eax
call fcn.004085e0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f0], 0x29
call fcn.00401db0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2f0], 0x24
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x40b19a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0xc8]
call fcn.00401e50
lea ecx, [esp + 0xac]
call fcn.00401e50
mov byte [esp + 0x2f0], 3
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40b1ca
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x2f0], bl
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40b1e1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2f0], 0xffffffff
mov eax, dword [esp + 0x2fc]
cmp eax, ebx
je 0x40b1ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0046aaed
add esp, 0x2e0
ret 8