Function at 0x41eb6f
Capabilities:
Get geographical location
Identify system language via api
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xabc
mov eax, dword [0x423014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x4069c4
lea edi, [ebp - 0x14]
xor ebx, ebx
mov byte [ebp - 0xa99], bl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x14]
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, bx
jne 0x41eba3
mov esi, 0x104
lea eax, [ebp - 0x278]
push esi
push eax
sub edi, edx
push ecx
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
jl 0x41ebd2
xor ecx, ecx
mov word [ebp - 0x72], cx
jmp 0x41ebf4
lea ecx, [eax + eax]
mov esi, 0x208
cmp ecx, esi
jae 0x41efd6
xor edx, edx
mov word [ebp + ecx - 0x278], dx
test eax, eax
jle 0x41ef92
push 0x5c
mov edx, ebx
mov ecx, ebx
pop ebx
dec eax
test ecx, ecx
jne 0x41ec24
cmp word [ebp + eax*2 - 0x278], 0x2e
jne 0x41ec20
mov edx, eax
cmp word [ebp + eax*2 - 0x278], bx
je 0x41ec1e
test eax, eax
je 0x41ec24
dec eax
jmp 0x41ec0d
mov ecx, eax
test eax, eax
jne 0x41ebfb
mov esi, edx
mov dword [ebp - 0xab8], edx
sub esi, ecx
mov dword [ebp - 0xaa4], ecx
dec esi
lea eax, [ebp - 0x276]
push esi
lea eax, [eax + ecx*2]
mov ebx, 0x104
push eax
lea eax, [ebp - 0x480]
push ebx
push eax
call fcn.00415c28
lea eax, [edi + 1]
sub ebx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x480]
lea eax, [eax + esi*2]
push ebx
push eax
call fcn.00415c28
lea ebx, [ebp - 0x480]
add esp, 0x20
lea ecx, [ebx + 2]
xor edx, edx
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x41ec7a
push 0xa
lea eax, [ebp - 0x28]
sub ebx, ecx
push eax
push 0x406a64
sar ebx, 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41ecaf
lea eax, [ebp - 0x28]
push eax
call fcn.004135d5
movzx esi, ax
pop ecx
test eax, eax
jne 0x41ecb8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
push 0xa
lea eax, [ebp - 0x3c]
push eax
push 0x40699c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41ece3
lea eax, [ebp - 0x3c]
push eax
call fcn.004135d5
pop ecx
mov ecx, eax
mov dword [ebp - 0xab4], ecx
test ecx, ecx
jne 0x41ecef
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [ebp - 0xab4], eax
xor ecx, ecx
mov eax, esi
and eax, 0x3ff
inc ecx
cmp ax, cx
je 0x41ed04
cmp ax, 0xd
jne 0x41ed0f
mov esi, 0x409
mov byte [ebp - 0xa99], cl
xor ecx, ecx
movzx eax, si
push ecx
push ecx
push 0xb
push eax
mov dword [ebp - 0xaac], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0xaa0], eax
lea ecx, [eax + eax]
push ecx
call fcn.00410eee
mov dword [ebp - 0xaa8], eax
pop ecx
test eax, eax
je 0x41ef8d
push dword [ebp - 0xaa0]
push eax
push 0xb
push dword [ebp - 0xaac]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0xaa8]
call fcn.004135d5
pop ecx
mov dword [ebp - 0xab0], eax
xor eax, eax
push eax
push eax
push 0x1004
push dword [ebp - 0xaac]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0xabc], eax
lea ecx, [eax + eax]
push ecx
call fcn.00410eee
mov dword [ebp - 0xaa0], eax
pop ecx
test eax, eax
je 0x41ef8d
push dword [ebp - 0xabc]
push eax
push 0xb
push dword [ebp - 0xaac]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0xaa0]
call fcn.004135d5
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0xab4]
cmp eax, 0xfde9
je 0x41ede5
cmp eax, dword [ebp - 0xab0]
je 0x41ede5
cmp eax, ecx
je 0x41ede5
mov esi, 0x409
mov byte [ebp - 0xa99], 1
push dword [ebp - 0xaa8]
call fcn.00410ef9
push dword [ebp - 0xaa0]
call fcn.00410ef9
pop ecx
pop ecx
push 0xa
push 0x19
lea eax, [ebp - 0x70]
push eax
movzx eax, si
push eax
call fcn.0041b989
lea eax, [ebp - 0x70]
push 0x19
push eax
call fcn.00413d21
mov ecx, dword [ebp - 0xab8]
add esp, 0x18
add ecx, eax
mov dword [ebp - 0xaa0], eax
lea eax, [edi + 2]
add eax, ecx
mov dword [ebp - 0xaa8], eax
cmp eax, 0x104
ja 0x41ef74
mov ecx, dword [ebp - 0xaa4]
inc ecx
push ecx
mov dword [ebp - 0xab0], ecx
lea ecx, [ebp - 0x278]
push ecx
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.00415c28
push dword [ebp - 0xaa0]
mov ecx, dword [ebp - 0xaa4]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xaa8]
lea esi, [ebp - 0x686]
sub eax, ecx
lea esi, [esi + ecx*2]
push eax
push esi
call fcn.00415c28
mov ecx, dword [ebp - 0xaa0]
push 0x5c
pop eax
mov word [esi + ecx*2], ax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x480]
push eax
mov eax, dword [ebp - 0xaa8]
sub eax, ecx
inc ecx
sub eax, dword [ebp - 0xaa4]
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00415c28
add esp, 0x30
xor eax, eax
push 2
push eax
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x41ef58
cmp byte [ebp - 0xa99], al
jne 0x41eef1
mov byte [ebp - 0xa99], 1
mov esi, 0x409
jmp 0x41edfd
push dword [ebp - 0xab0]
mov esi, dword [ebp - 0xaa4]
lea eax, [ebp - 0x278]
push eax
add esi, 2
lea eax, [ebp - 0x890]
push esi
push eax
call fcn.00415c28
push ebx
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x890]
push esi
push eax
call fcn.0041e952
add esp, 0x20
test eax, eax
jne 0x41ef58
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x480]
push eax
push 0x406af8
push 2
call fcn.00411340
pop ecx
push eax
call fcn.0041f241
add esp, 0x10
push 9
jmp 0x41efd3
push eax
mov ecx, 0x424438
call fcn.0041e3b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad62
leave
ret
push 0x406a78
push 2
call fcn.00411340
pop ecx
push eax
call fcn.0041f241
pop ecx
pop ecx
push 8
jmp 0x41efd3
xor eax, eax
inc eax
jmp 0x41ef65
push 0x410
lea eax, [ebp - 0xa98]
push ebx
push eax
call fcn.0040bb10
add esp, 0xc
lea eax, [ebp - 0xa98]
push esi
push eax
call fcn.0041e905
lea eax, [ebp - 0xa98]
push eax
push 0x4069d8
push 2
call fcn.00411340
pop ecx
push eax
call fcn.0041f241
add esp, 0xc
push 7
pop eax
jmp 0x41ef65
call fcn.0040aea3
int3