Function at 0x412760
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4184bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x28], edi
mov dword [edi + 0x10], ebp
mov byte [edi + 0x14], 1
mov byte [edi + 0x15], 1
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x1c]
je 0x4127ab
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x24]
cmp ecx, eax
jne 0x412a47
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x30]
push 0x104
push edx
push ebp
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x2f]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x244], ebp
call fcn.004040b0
xor ecx, ecx
cmp word [esp + 0x30], bp
mov byte [esp + 0x240], 1
je 0x412803
lea eax, [esp + 0x30]
add eax, 2
inc ecx
cmp word [eax], bp
jne 0x4127fa
lea ecx, [esp + ecx*2 + 0x30]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0040e9f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
or ebx, 0xffffffff
sar eax, 1
cmp eax, 1
mov byte [esp + 0x240], 3
mov dword [esp + 0x14], ebx
jb 0x412893
dec eax
mov dword [esp + 0x10], eax
cmp eax, ebx
lea eax, [esp + 0x14]
ja 0x412847
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov word [esp + 0x10], 0x5c
lea esi, [ecx + eax*2 + 2]
mov ecx, dword [esp + 0x10]
push ecx
push ecx
push esp
lea ecx, [esp + 0x28]
call fcn.0040e170
push ecx
mov ecx, esp
push esi
call fcn.004112d0
lea edx, [esp + 0x1c]
push edx
call fcn.00411390
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp ecx, eax
je 0x412893
sub ecx, eax
sub ecx, 2
sar ecx, 1
mov edi, ecx
cmp edi, ebx
jne 0x4128c2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x240], 4
call fcn.0040a000
xor al, al
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x234
ret
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 0x1c]
lea edx, [ecx + 0x18]
mov ecx, dword [ecx + 0x18]
cmp ecx, esi
jne 0x412906
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], edi
sub ecx, eax
sar ecx, 1
mov dword [esp + 0x10], ecx
cmp ecx, edi
lea ecx, [esp + 0x10]
jb 0x4128ef
lea ecx, [esp + 0x14]
mov ecx, dword [ecx]
lea esi, [esp + 0x1b]
push esi
lea ecx, [eax + ecx*2]
push ecx
push eax
mov ecx, edx
call fcn.00407ea0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x24]
lea esi, [edx + 0x24]
mov edx, dword [edx + 0x28]
cmp ecx, edx
jne 0x412a33
mov edx, dword [esp + 0x20]
mov ecx, edx
sub ecx, eax
sar ecx, 1
mov ebp, ecx
sub ebp, edi
dec ebp
inc edi
cmp edi, ecx
mov dword [esp + 0x14], ebp
jbe 0x412948
push str.basic_string
call fcn.00410550
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 4
sub edx, eax
lea ecx, [esp + 0x10]
sar edx, 1
sub edx, edi
cmp edx, ebp
mov dword [esp + 0x10], edx
jb 0x41295e
lea ecx, [esp + 0x14]
mov ebp, dword [ecx]
mov edx, edi
add edx, ebp
lea ecx, [eax + edx*2]
lea edx, [esp + 0x1b]
lea eax, [eax + edi*2]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00407ea0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
mov dword [esp + 0x10], ebx
sar eax, 1
cmp eax, 1
jb 0x412a33
dec eax
mov dword [esp + 0x14], eax
cmp eax, ebx
lea eax, [esp + 0x10]
ja 0x41299f
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov word [esp + 0x10], 0x2e
lea edi, [ecx + eax*2 + 2]
mov ecx, dword [esp + 0x10]
push ecx
push ecx
push esp
mov ecx, esi
call fcn.0040e170
push ecx
mov ecx, esp
push edi
call fcn.004112d0
lea edx, [esp + 0x1c]
push edx
call fcn.00411390
mov ecx, dword [esi]
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
je 0x412a33
sub eax, ecx
sub eax, 2
sar eax, 1
mov edi, eax
cmp edi, ebx
je 0x412a33
mov eax, dword [esi + 4]
mov ebp, ecx
sub eax, ebp
mov dword [esp + 0x14], ebx
sar eax, 1
cmp edi, eax
jbe 0x412a05
push str.basic_string
call fcn.00410550
add esp, 4
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
sub eax, edi
mov dword [esp + 0x10], eax
cmp eax, ebx
lea eax, [esp + 0x10]
jb 0x412a20
lea eax, [esp + 0x14]
mov edx, dword [eax]
add edx, edi
lea eax, [ecx + edx*2]
lea ecx, [ecx + edi*2]
push eax
push ecx
mov ecx, esi
call fcn.00407750
lea ecx, [esp + 0x1c]
mov dword [esp + 0x240], ebx
call fcn.0040a000
mov edi, dword [esp + 0x28]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
cmp edx, eax
je 0x4128a7
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4128a7
cmp dword [edi + 0x30], 0x1fffffff
jne 0x412a7e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
mov ecx, edi
push eax
call fcn.00412b90
mov ecx, dword [edi + 0x30]
push ecx
push esi
mov ecx, edi
call fcn.00412cb0
jmp 0x4128a9