Function at 0x40c610
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576d49
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5daf20]
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 ebx, ecx
push 0x11c
lea eax, [ebp - 0x17c]
push 0
push eax
call fcn.0054aaf0
add esp, 0xc
mov ecx, ebx
push 0
push 0x5aef08
mov dword [ebp - 0x17c], 0x11c
call fcn.00401610
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c943
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40c69f
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], 0
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40c6d2
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x184], eax
push 8
push str._OSInfo
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.00401610
push dword [ebp - 0x178]
lea eax, [ebp - 0x180]
push str._MajorVersion____d_
push eax
call fcn.00405c70
mov eax, dword [ebp - 0x180]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x184]
push eax
call fcn.00404c80
push dword [ebp - 0x174]
lea eax, [ebp - 0x180]
push str._MinorVersion____d_
push eax
call fcn.00405c70
mov eax, dword [ebp - 0x180]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x184]
push eax
call fcn.00404c80
push dword [ebp - 0x170]
lea eax, [ebp - 0x180]
push str._BuildNumber____d_
push eax
call fcn.00405c70
mov eax, dword [ebp - 0x180]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x184]
push eax
call fcn.00404c80
push dword [ebp - 0x16c]
lea eax, [ebp - 0x180]
push str._PlatformId____d_
push eax
call fcn.00405c70
mov eax, dword [ebp - 0x180]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x184]
push eax
call fcn.00404c80
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x180]
push str._CSDVersion____s_
push eax
call fcn.00405c70
mov eax, dword [ebp - 0x180]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x184]
push eax
call fcn.00404c80
movzx eax, word [ebp - 0x68]
push eax
lea eax, [ebp - 0x180]
push str._ServicePackMajor____d_
push eax
call fcn.00405c70
mov eax, dword [ebp - 0x180]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x184]
push eax
call fcn.00404c80
movzx eax, word [ebp - 0x66]
push eax
lea eax, [ebp - 0x180]
push str._ServicePackMinor____d_
push eax
call fcn.00405c70
mov eax, dword [ebp - 0x180]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [ebp - 0x184]
push eax
call fcn.00404c80
movzx eax, word [ebp - 0x64]
push eax
lea eax, [ebp - 0x180]
push str._SuiteFlags____x_
push eax
call fcn.00405c70
mov esi, dword [ebp - 0x180]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x184]
push esi
call fcn.00404c80
lea eax, [ebp - 0x188]
push eax
call fcn.0040c010
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [ebp - 0x184]
push dword [eax - 0xc]
push eax
call fcn.00404c80
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x188]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c8b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5b03a4
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00404b80
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004016d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x188]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c8fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x184]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c922
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c943
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0xc
push str._LocaleInfo_
mov ecx, ebx
mov dword [ebp - 0x1a4], str.LocalUserDefault
mov dword [ebp - 0x1a0], str.LocalSystemDefault
mov dword [ebp - 0x1ac], 0x400
mov dword [ebp - 0x1a8], 0x800
mov dword [ebp - 0x1c4], str.IDefaultAnsiCodepage
mov dword [ebp - 0x1c0], str.IDefaultCodepage
mov dword [ebp - 0x1bc], str.IDefaultLanguage
mov dword [ebp - 0x1b8], str.IDefaultCountry
mov dword [ebp - 0x1b4], str.ILanguage
mov dword [ebp - 0x1b0], str.ICountry
mov dword [ebp - 0x60], 0x1004
mov dword [ebp - 0x5c], 0xb
mov dword [ebp - 0x58], 9
mov dword [ebp - 0x54], 0xa
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 5
call fcn.00404c80
xor eax, eax
mov dword [ebp - 0x180], eax
jmp 0x40c9f0
push dword [ebp + eax - 0x1a4]
lea ecx, [ebp - 0x188]
call fcn.004050a0
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x198]
push 0x5b04d0
push eax
mov dword [ebp - 4], 4
call fcn.00404a00
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov ecx, ebx
push dword [eax - 0xc]
push eax
call fcn.00404c80
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x198]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
jmp 0x40ca60
push dword [ebp + edi - 0x1c4]
lea ecx, [ebp - 0x18c]
call fcn.004050a0
mov byte [ebp - 4], 6
call fcn.00427841
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c695
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x184], esi
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x190]
push 0x5b001c
push eax
mov byte [ebp - 4], 7
call fcn.00404a00
push 0x5b04d8
push eax
lea eax, [ebp - 0x19c]
push eax
mov byte [ebp - 4], 8
call fcn.00404b80
add esp, 0x18
mov byte [ebp - 4], 9
mov eax, dword [eax]
mov ecx, ebx
push dword [eax - 0xc]
push eax
call fcn.00404c80
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x19c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cb04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x190]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cb28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1c
lea eax, [ebp - 0x48]
push eax
push dword [ebp + edi - 0x60]
mov eax, dword [ebp - 0x180]
push dword [ebp + eax - 0x1ac]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40cb79
cmp eax, 0x1c
ja 0x40cb79
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cb54
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x184]
call fcn.00401610
mov esi, dword [ebp - 0x184]
push 0x5b04e0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.00404b80
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
mov ecx, ebx
push dword [eax - 0xc]
push eax
call fcn.00404c80
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x194]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cbc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cbe7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cc0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, 0x18
jl 0x40ca60
push 3
push 0x5b03a4
mov ecx, ebx
call fcn.00404c80
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x188]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cc4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x180]
add eax, 4
mov dword [ebp - 0x180], eax
cmp eax, 8
jl 0x40c9f0
push 0xe
push str.__LocaleInfo__n
mov ecx, ebx
call fcn.00404c80
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.00547a0a
mov esp, ebp
pop ebp
ret