Function at 0x401c40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417030
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41fea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x30], 0
movdqu xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x17], 0
movq qword [ebp - 0x1f], xmm0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx esi, ax
lea eax, [ebp - 0x30]
push 0x20
push eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
call fcn.00402b80
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x401ccd
push 0x80004005
call fcn.00401670
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
push esi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push str._04X
push eax
call fcn.00401870
mov esi, dword [ebp - 0x38]
push 0x418268
push esi
call fcn.0040704d
add esp, 0x14
test eax, eax
sete al
test al, al
je 0x401d1c
push 4
push str.0409
lea ecx, [ebp - 0x38]
call fcn.00402fa0
mov esi, dword [ebp - 0x38]
push 0x4182bc
lea ecx, [ebp - 0x40]
call fcn.00401100
mov edi, dword [esi - 0xc]
mov byte [ebp - 4], 1
test edi, edi
jns 0x401d3e
push 0x80070057
call fcn.00401670
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x401d5b
push edi
lea ecx, [ebp - 0x38]
call fcn.00402dc0
mov esi, dword [ebp - 0x38]
lea eax, [edi + 1]
push eax
push esi
call fcn.0040712b
push eax
call fcn.00401560
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x401d34
push 2
lea eax, [ebp - 0x44]
mov dword [esi - 0xc], edi
push eax
lea ecx, [ebp - 0x38]
mov byte [edi + esi], 0
call fcn.00402f20
push 2
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.00402c90
mov edi, dword [ebp - 0x44]
push 0x4182c8
push edi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401e6d
mov ecx, dword [ebp - 0x3c]
push str.Arabic.ini
call fcn.00401100
mov eax, dword [ebp - 0x34]
or edx, 0xffffffff
add eax, 0xfffffff0
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], eax
lea ecx, [eax + 0xc]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401dee
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401e0e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
mov edi, dword [ebp - 0x40]
mov ecx, edx
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401e31
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x401e4f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407792
mov esp, ebp
pop ebp
ret
push str.0402
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401f24
push str.Bulgarian.ini
mov ecx, dword [ebp - 0x3c]
call fcn.00401100
mov eax, dword [ebp - 0x34]
or edx, 0xffffffff
add eax, 0xfffffff0
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], eax
lea ecx, [eax + 0xc]
mov eax, edx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401eba
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401eda
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
mov edi, dword [ebp - 0x40]
mov ecx, edx
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401efd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x401e4f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x401e4f
push str.0804
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401f3e
push str.Chinese_Simplified_.ini
jmp 0x401e86
push 0x418310
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401f92
push 0x418314
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401f92
push str.Chinese_Traditional_.ini
mov ecx, dword [ebp - 0x3c]
call fcn.00401100
lea ecx, [ebp - 0x34]
call fcn.004011f0
lea ecx, [ebp - 0x44]
call fcn.004011f0
lea ecx, [ebp - 0x40]
call fcn.004011f0
lea ecx, [ebp - 0x38]
call fcn.004011f0
jmp 0x401e4f
push str.0405
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401fa9
push str.Czech.ini
jmp 0x401f65
push str.0413
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401fc0
push str.Dutch.ini
jmp 0x401f65
push 0x41835c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401fd7
push 0x4182bc
jmp 0x401f65
push 0x418360
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401ff1
push str.French.ini
jmp 0x401f65
push 0x418370
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
call edi
test eax, eax
jne 0x40200d
push str.German.ini
jmp 0x401f65
push str.040e
push esi
call edi
test eax, eax
jne 0x402023
push str.Hungarian.ini
jmp 0x401f65
push str.0410
push esi
call edi
test eax, eax
jne 0x402039
push str.Italian.ini
jmp 0x401f65
push str.0411
push esi
call edi
test eax, eax
jne 0x40204f
push str.Japanese.ini
jmp 0x401f65
push str.0412
push esi
call edi
test eax, eax
jne 0x402065
push str.Korean.ini
jmp 0x401f65
push str.0814
push esi
call edi
test eax, eax
jne 0x40207b
push str.Norwegian.ini
jmp 0x401f65
push str.0415
push esi
call edi
test eax, eax
jne 0x402091
push str.Polish.ini
jmp 0x401f65
push str.0416
push esi
call edi
test eax, eax
jne 0x4020a7
push str.Portuguese_pt_.ini
jmp 0x401f65
push str.0418
push esi
call edi
test eax, eax
jne 0x4020bd
push str.Romanian.ini
jmp 0x401f65
push str.0419
push esi
call edi
test eax, eax
jne 0x4020d3
push str.Russian.ini
jmp 0x401f65
push str.041b
push esi
call edi
test eax, eax
jne 0x4020e9
push str.Slovak.ini
jmp 0x401f65
push 0x418460
push esi
call edi
test eax, eax
jne 0x4020ff
push str.Spanish.ini
jmp 0x401f65
push str.041f
push esi
call edi
test eax, eax
jne 0x402115
push str.Turkish.ini
jmp 0x401f65
push str.0422
push esi
call edi
test eax, eax
jne 0x40212b
push str.Ukrainian.ini
jmp 0x401f65
push str.041d
push esi
call edi
test eax, eax
jne 0x402141
push str.Swedish.ini
jmp 0x401f65
push str.0406
push esi
call edi
test eax, eax
jne 0x402157
push str.Danish.ini
jmp 0x401f65
push str.042a
push esi
call edi
mov ecx, dword [ebp - 0x3c]
test eax, eax
jne 0x402170
push str.Vietnamese.ini
jmp 0x401f68
lea eax, [ebp - 0x40]
push eax
call fcn.004010d0
jmp 0x401f6d