Function at 0x413262
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], edx
push edi
test cl, cl
je 0x4133cd
xor esi, esi
inc esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0xebb6748f
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], 0xffffffea
jle 0x4133c2
push 3
pop edi
mov dword [ebp - 0xc], 0xfffffff8
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
je 0x4132c9
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x4133a0
mov dword [ebp - 0x18], 0xfffffff6
mov dword [ebp - 0x14], 0x8b4b72b4
mov dword [ebp - 8], 0x9b96bc71
mov dword [ebp - 0x14], ebx
jmp 0x4132f1
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x28], 0xf039d3cd
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x4132e3
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
jne 0x413305
mov eax, ebx
cmp dword [ebp - 0x18], ebx
je 0x413307
mov eax, esi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x413316
mov ecx, ebx
cmp dword [ebp - 0x10], ebx
je 0x413318
mov ecx, esi
mov eax, dword [ebp - 0x28]
dec eax
add eax, ecx
je 0x413327
mov eax, esi
cmp dword [ebp - 0xc], ebx
jne 0x413329
mov eax, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x41333b
mov edx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x41333d
mov edx, esi
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp edx, eax
setge cl
xor edx, edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov eax, dword [ebp - 8]
setle dl
xor ecx, ecx
sub edx, 7
cmp edx, eax
setg cl
add ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 8], ebx
jmp 0x41339b
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x28], 0x16cf0574
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x41338d
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x4133b5
push 0x113f
push ebx
push ebx
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xffffffea
jg 0x413295
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
jmp 0x4134e3
push 8
pop edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x4133e1
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x4133fc
push ebx
push ebx
push 0x1e69
push 0x1ff6
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuW]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x1c], 0xfffffffe
mov dword [ebp - 0x1c], edi
push 3
mov dword [ebp - 0x1c], 0x328129ec
mov dword [ebp - 0x14], ebx
pop edi
jmp 0x413429
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x40], 0xe8ce6fc2
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x41341b
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x41343c
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
cmp byte [eax], bl
je 0x413459
push ebx
push ebx
push 0x9cb
push 0xc78
push ebx
call dword [sym.imp.USER32.dll_InsertMenuW]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
jmp 0x41346f
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x34], 0xeab3cf81
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x413461
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x41348a
push esi
push 0xfed
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp dword [ebp - 8], ebx
xor edx, edx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp ecx, eax
mov eax, dword [ebp - 8]
setl dl
xor ecx, ecx
cmp eax, 0x3e75
setne cl
xor ebx, ebx
cmp edx, ecx
setge bl
sub ebx, dword [ebp - 8]
mov eax, dword [ebp - 8]
neg ebx
sbb ebx, ebx
xor ecx, ecx
inc ebx
cmp ebx, eax
setne cl
cmp ecx, dword [ebp - 8]
jle 0x4134d6
cmp dword [ebp - 8], eax
jne 0x4134d8
xor esi, esi
push 0xfffffffffffffff7
pop eax
cmp eax, esi
sbb eax, eax
inc eax
mov dword [ebp - 0x30], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret