Function at 0x418660
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a503
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
xor eax, eax
mov byte [ebp - 4], 5
push eax
push 0x451c88
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.00409b00
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ebx
cmp dword [eax - 4], 1
jle 0x4186f0
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004021a0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
cmp word [eax], cx
jne 0x41870d
xor edx, edx
jmp 0x418721
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418712
sub edx, esi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.00409b00
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.00409130
test al, al
sete al
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x41875b
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
jne 0x418c2c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], 0
test eax, eax
je 0x418c2c
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
push eax
call dword [ecx + 0xb4]
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x418c2c
mov eax, dword [ecx]
push ecx
mov ebx, ecx
call dword [eax + 4]
mov dword [ebp - 0x64], ebx
test ebx, ebx
je 0x418c2c
mov eax, dword [ebx]
lea ecx, [ebp - 0x58]
push ecx
push 0x44c668
push ebx
call dword [eax]
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x418c2c
push str._root_node
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x60], edi
test edi, edi
jne 0x4187d7
push 0x8007000e
call fcn.004022e0
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 8
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x90]
push edi
mov byte [ebp - 4], 6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x4c], 0
je 0x418c2c
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
xor esi, esi
cmp dword [ebp - 0x5c], esi
jle 0x418bb0
mov edi, dword [ebp - 0x68]
lea esp, [esp]
lea ecx, [ebp - 0x94]
call fcn.0040cb30
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x1c]
push 0x457ae0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x6c], 0
call fcn.00409830
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x48]
call fcn.004095f0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x41887a
push dword [ebp - 0x28]
call fcn.00431c63
add esp, 4
mov eax, dword [ebp - 0x94]
cmp byte [ebp - 0x41], 0
push str.name
cmovne eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], eax
call fcn.00409830
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xb
push dword [ebp - 0x48]
call fcn.00409520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x4188ca
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
je 0x4188e5
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.004023c0
push str.type
lea ecx, [ebp - 0x28]
call fcn.00409830
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xc
push dword [ebp - 0x48]
call fcn.00409520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x418921
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
je 0x41893c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004023c0
push str.remark
lea ecx, [ebp - 0x28]
call fcn.00409830
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xd
push dword [ebp - 0x48]
call fcn.00409520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x418978
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
je 0x418993
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
call fcn.004023c0
push str.regeditkey
lea ecx, [ebp - 0x28]
call fcn.00409830
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xe
push dword [ebp - 0x48]
call fcn.00409520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x4189cf
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
je 0x4189ea
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x84]
call fcn.004023c0
push str.regeditpath
lea ecx, [ebp - 0x28]
call fcn.00409830
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xf
push dword [ebp - 0x48]
call fcn.00409520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x418a26
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
je 0x418a3e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x80]
call fcn.004023c0
push str.homepageurl
lea ecx, [ebp - 0x28]
call fcn.00409830
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x10
push dword [ebp - 0x48]
call fcn.00409520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x418a7a
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
je 0x418a92
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004023c0
push str.priority
lea ecx, [ebp - 0x28]
call fcn.00409830
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x11
push dword [ebp - 0x48]
call fcn.004095f0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x418acb
push dword [ebp - 0x28]
call fcn.00431c63
add esp, 4
mov eax, dword [ebp - 0x78]
cmp byte [ebp - 0x41], 0
push str.position
cmovne eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x78], eax
call fcn.00409830
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x12
push dword [ebp - 0x48]
call fcn.004095f0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x418b12
push dword [ebp - 0x28]
call fcn.00431c63
add esp, 4
mov eax, dword [ebp - 0x74]
cmp byte [ebp - 0x41], 0
push str.cityid
cmovne eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x74], eax
call fcn.00409830
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x13
push dword [ebp - 0x48]
call fcn.00409520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x418b5c
push dword [ebp - 0x28]
call fcn.00431c63
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
je 0x418b74
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.004023c0
lea eax, [ebp - 0x94]
push eax
lea ecx, [edi + 0x30]
call fcn.0041bdb0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x418b97
mov dword [ebp - 0x48], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call fcn.0040cbc0
inc esi
cmp esi, dword [ebp - 0x5c]
jl 0x418820
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x418bcb
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x4c], eax
test ecx, ecx
je 0x418bcb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x2c], 8
jb 0x418bdf
push dword [ebp - 0x40]
call fcn.00431c63
mov eax, dword [ebp - 0x4c]
add esp, 4
xor ecx, ecx
mov word [ebp - 0x40], cx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
test ecx, ecx
je 0x418c07
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 3
test eax, eax
je 0x418c15
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x418c26
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
jmp 0x418c8c
cmp dword [ebp - 0x2c], 8
jb 0x418c3d
push dword [ebp - 0x40]
call fcn.00431c63
add esp, 4
xor eax, eax
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
test eax, eax
je 0x418c62
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x418c73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x418c84
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x418c92
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x418caa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418cce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret 4