Function at 0x402ef0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cd73
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x5a68a0]
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 eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x350], esi
call fcn.0041f7c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402f4c
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x354], eax
push 0x208
lea ecx, [ebp - 0x218]
push esi
mov edi, 1
push ecx
mov dword [ebp - 4], edi
call fcn.0051fb60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0041f7c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402fa8
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x340], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebx - 8]
mov ecx, edi
sub ecx, dword [ebx - 4]
sub eax, 0x100
or eax, ecx
jge 0x402fe5
push 0x100
lea ecx, [ebp - 0x340]
call fcn.0040a920
mov ebx, dword [ebp - 0x340]
push esi
push esi
push 0x100
push ebx
push esi
push esi
push esi
lea ecx, [ebp - 0x218]
push esi
push ecx
call fcn.0051cede
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0051c93b
add esp, 0x2c
cmp eax, esi
jl 0x403214
cmp eax, dword [ebx - 8]
jg 0x403214
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
call fcn.0041f7c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40303e
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x33c]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 0x350], edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
push str.kernel32.dll
mov dword [ebp - 0x34c], edx
mov dword [ebp - 0x344], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
je 0x4030a3
push str.GetUserGeoID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4030a3
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x10
call edi
mov dword [ebp - 0x344], eax
call fcn.0041f7c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4030bd
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x348], eax
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 3
push ecx
mov dword [ebp - 0x334], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edi, [ebp - 0x338]
mov dword [ebp - 0x338], esi
call fcn.00401e50
cmp eax, 1
jne 0x40311e
movzx eax, word [ebp - 0x338]
cmp eax, 0x8664
je 0x403119
cmp eax, 0xaa64
je 0x403119
xor esi, esi
jmp 0x40311e
mov esi, 1
mov edx, dword [ebp - 0x32c]
mov eax, dword [ebp - 0x330]
dec esi
neg esi
push edx
sbb esi, esi
push eax
and esi, 0xffffffe0
add esi, 0x40
push esi
lea ecx, [ebp - 0x348]
push str.WIN_d__d._d
push ecx
call fcn.0040a270
add esp, 0x10
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x338], esp
push edx
call fcn.0040ab30
call fcn.00403220
mov esi, dword [ebp - 0x348]
mov ecx, dword [ebp - 0x34c]
mov edi, dword [ebp - 0x33c]
push eax
mov eax, dword [ebp - 0x344]
push ebx
push esi
push eax
push ecx
push str.LGW0x_XCNW0x_XOSV_sEXE_sVER_08X
push edi
call fcn.0040a270
lea eax, [esi - 0x10]
add esp, 0x20
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031d0
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x354]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.0051c801
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040a9a0
int3