Function at 0x410400
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637d01
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xc8], edi
mov esi, dword [ebp + 8]
xor al, al
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x144], esi
mov byte [ebp - 0xbd], al
mov edx, dword [esi + 4]
cmp edx, 1
jne 0x4104f2
mov eax, dword [esi]
test eax, eax
je 0x4104f2
cmp word [eax], 0x2d
jne 0x4104f2
lea ecx, [edi + 0x3c]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edx
lea eax, [ebp - 0xcc]
mov dword [ebp - 4], 0
push eax
call fcn.004af3e0
mov edx, dword [ebp - 0xc8]
test al, al
mov dword [ebp - 4], 0xffffffff
setne al
mov byte [ebp - 0xbd], al
test edx, edx
jns 0x410c3d
mov ecx, dword [ebp - 0xcc]
and edx, 0x7fffffff
mov eax, ecx
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x4104e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d54
push edx
push ecx
call fcn.004b22a2
add esp, 8
jmp 0x410c37
xor eax, eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x124], eax
test edx, edx
je 0x4105bf
mov eax, dword [esi]
test eax, eax
jne 0x41054e
mov eax, 0x649aa0
push 0x64df74
push eax
call fcn.004c26c5
add esp, 8
test eax, eax
je 0x4105bf
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xec]
push eax
push esi
call fcn.00410d70
test al, al
jne 0x410703
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 6
test eax, eax
je 0x41059c
push eax
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0xec]
mov byte [ebp - 4], 7
test eax, eax
je 0x4105b3
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 4], 8
jmp 0x410c1d
push 0xaa
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.004b40a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0xbc]
add esp, 0xc
push 0x55
push eax
push 0x5c
push 0x400
call esi
cmp word [ebp - 0xbc], 0
je 0x410665
push 0xffffffffffffffff
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xf8], 0
push eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
call fcn.00403940
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0xc4], 1
push eax
lea eax, [ebp - 0xec]
mov ecx, edi
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00410d70
mov byte [ebp - 0xbe], 0
test al, al
jne 0x41066c
mov byte [ebp - 0xbe], 1
test byte [ebp - 0xc4], 1
mov dword [ebp - 4], 3
je 0x410697
mov eax, dword [ebp - 0xf8]
mov byte [ebp - 4], 5
test eax, eax
je 0x410693
push eax
call fcn.00446420
add esp, 4
mov byte [ebp - 4], 3
cmp byte [ebp - 0xbe], 0
je 0x4106f4
push 0x55
lea eax, [ebp - 0xbc]
push eax
push 0x59
push 0x400
call esi
test eax, eax
je 0x4106ca
push 0xffffffffffffffff
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xec]
call fcn.00403940
push 0x55
lea eax, [ebp - 0xbc]
push eax
push 0x5a
push 0x400
call esi
test eax, eax
je 0x4106f4
push 0xffffffffffffffff
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x108]
call fcn.00403940
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0xe8], 0
jne 0x410746
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 9
test eax, eax
je 0x410723
push eax
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0xec]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x41073a
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 4], 0xb
jmp 0x410c1d
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x128], eax
push ecx
mov ecx, eax
call fcn.004af060
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xd
call fcn.004ae7c0
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x4107c7
jmp 0x4107a0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409a60
lea ecx, [ebp - 0xfc]
call fcn.004ae7c0
mov dword [ebp - 0xc4], eax
test eax, eax
jne 0x4107a0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
or edx, 0xffffffff
mov byte [ebp - 4], 0x10
or eax, edx
mov dword [ebp - 0xd4], edx
or esi, edx
mov dword [ebp - 0xd0], eax
xor edi, edi
mov dword [ebp - 0xc4], esi
or ecx, edx
cmp dword [ebp - 0x110], edi
jbe 0x410aa4
mov edi, edi
cmp esi, 0xffffffff
jne 0x41086e
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x124]
mov eax, dword [eax + edi*4]
cmp dword [eax], ecx
jne 0x41086e
mov dword [ebp - 0xc4], edi
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0xe0]
push 0xffffffffffffffff
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xd8], 0
push dword [eax + 4]
call fcn.00403940
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00410d70
test al, al
sete byte [ebp - 0xbe]
mov eax, dword [ebp - 0xe0]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x4108f0
push eax
call fcn.00446420
add esp, 4
cmp byte [ebp - 0xbe], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 0x10
jne 0x410a7d
mov eax, dword [ebp - 0xec]
test eax, eax
jne 0x41092e
mov eax, 0x649aa0
mov ecx, dword [ebp - 0x140]
test ecx, ecx
jne 0x41093d
mov ecx, 0x649aa0
mov esi, dword [ebp - 0x13c]
mov edx, dword [ebp - 0xe8]
cmp esi, edx
jge 0x41094f
mov edx, esi
test ecx, ecx
jne 0x410959
neg eax
sbb eax, eax
jmp 0x41096f
test eax, eax
jne 0x410964
mov eax, 1
jmp 0x410987
push edx
push eax
push ecx
call fcn.004c283a
add esp, 0xc
test eax, eax
jne 0x410a7d
sub esi, dword [ebp - 0xe8]
test esi, esi
setg al
shr esi, 0x1f
sub eax, esi
test eax, eax
jne 0x410a7d
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x41099e
mov dword [ebp - 0xd4], edi
cmp dword [ebp - 0xd0], 0xffffffff
jne 0x410a15
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4109b6
mov eax, 0x649aa0
mov ecx, dword [ebp - 0x134]
test ecx, ecx
jne 0x4109c5
mov ecx, 0x649aa0
mov esi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x11c]
cmp esi, edx
jge 0x4109d7
mov edx, esi
test ecx, ecx
jne 0x4109e1
neg eax
sbb eax, eax
jmp 0x4109f7
test eax, eax
jne 0x4109ec
mov eax, 1
jmp 0x410a0b
push edx
push eax
push ecx
call fcn.004c283a
add esp, 0xc
test eax, eax
jne 0x410a15
sub esi, dword [ebp - 0x11c]
test esi, esi
setg al
shr esi, 0x1f
sub eax, esi
test eax, eax
jne 0x410a15
mov dword [ebp - 0xd0], edi
mov eax, dword [ebp - 0x108]
test eax, eax
jne 0x410a24
mov eax, 0x649aa0
mov ecx, dword [ebp - 0xf8]
test ecx, ecx
jne 0x410a33
mov ecx, 0x649aa0
mov esi, dword [ebp - 0xf4]
mov edx, dword [ebp - 0x104]
cmp esi, edx
jge 0x410a45
mov edx, esi
test ecx, ecx
jne 0x410a4f
neg eax
sbb eax, eax
jmp 0x410a65
test eax, eax
jne 0x410a5a
mov eax, 1
jmp 0x410a79
push edx
push eax
push ecx
call fcn.004c283a
add esp, 0xc
test eax, eax
jne 0x410a7d
sub esi, dword [ebp - 0x104]
test esi, esi
setg al
shr esi, 0x1f
sub eax, esi
test eax, eax
je 0x410a91
inc edi
cmp edi, dword [ebp - 0x110]
jae 0x410a95
mov esi, dword [ebp - 0xc4]
jmp 0x410850
mov ecx, edi
jmp 0x410a98
or ecx, 0xffffffff
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd0]
xor esi, esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xd8], esi
mov byte [ebp - 4], 0x13
test ecx, ecx
jns 0x410ca9
test eax, eax
js 0x410aca
mov ecx, eax
test ecx, ecx
jns 0x410ca9
test edx, edx
js 0x410ad8
mov ecx, edx
test ecx, ecx
jns 0x410ca9
mov eax, dword [ebp - 0xc4]
test eax, eax
js 0x410aec
mov ecx, eax
test ecx, ecx
jns 0x410ca9
mov dword [ebp - 0xcc], 0x64df58
mov dword [ebp - 0xc8], 1
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0x15
call fcn.004af3e0
mov edx, dword [ebp - 0xc8]
test al, al
mov byte [ebp - 4], 0x13
setne byte [ebp - 0xbd]
test edx, edx
jns 0x410b70
mov ecx, dword [ebp - 0xcc]
and edx, 0x7fffffff
mov eax, ecx
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x410b66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d59
push edx
push ecx
call fcn.004b22a2
add esp, 8
mov edi, dword [ebp - 0x114]
mov byte [ebp - 4], 0x16
test esi, esi
je 0x410b87
push esi
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0x134]
mov byte [ebp - 4], 0x17
test eax, eax
je 0x410b9e
push eax
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0x140]
mov byte [ebp - 4], 0x18
test eax, eax
je 0x410bb5
push eax
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0xf8]
mov byte [ebp - 4], 0x19
test eax, eax
je 0x410bcc
push eax
call fcn.00446420
add esp, 4
lea ecx, [ebp - 0xfc]
call fcn.004ac9b0
mov byte [ebp - 4], 0x1a
test edi, edi
je 0x410be8
push edi
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x410bff
push eax
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0xec]
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x410c16
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 4], 0x1d
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x410c30
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xbd]
cmp byte [ebp + 0xc], 0
je 0x410c86
mov edx, 0x64df80
test al, al
je 0x410c51
mov edx, str._g_successfully
mov esi, dword [ebp - 0x144]
sub esp, 0xc
mov ecx, esp
mov eax, dword [esi]
push edx
push str.Language_was__s_changed_to__s___
mov dword [ecx], eax
mov eax, dword [esi + 4]
push 2
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
push 0x80
push str.e:workprgpdf5_builds_rc.328_trackerupdatelocalizer.cpp
mov dword [ecx + 8], eax
call fcn.00431810
add esp, 0x20
mov al, byte [ebp - 0xbd]
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.004b2558
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x114]
push 0xffffffffffffffff
mov eax, dword [edi + ecx*4]
lea ecx, [ebp - 0xe0]
push dword [eax + 4]
call fcn.00403940
mov esi, dword [ebp - 0xe0]
mov eax, 0x649aa0
test esi, esi
je 0x410cd3
mov eax, esi
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0x14
call fcn.004af3e0
mov edx, dword [ebp - 0xc8]
test al, al
mov byte [ebp - 4], 0x13
setne al
mov byte [ebp - 0xbd], al
test edx, edx
jns 0x410b76
mov ecx, dword [ebp - 0xcc]
and edx, 0x7fffffff
mov eax, ecx
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x410d45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d5e
push edx
push ecx
call fcn.004b22a2
add esp, 8
jmp 0x410b76
call fcn.004b959b
call fcn.004b959b
call fcn.004b959b
int3