Function at 0x415190
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4a03eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 0x18], 1
mov byte [ebp + 0x19], 1
mov eax, dword [ebp + 0x24]
cmp eax, ebx
mov dword [esp + 0x14], ebp
je 0x4151d2
cmp dword [ebp + 0x34], ebx
jne 0x4154c5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.00401080
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00407a10
mov eax, dword [0x4a366c]
push 1
push eax
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x144], ebx
mov byte [esp + 0x1f], 0x5c
call fcn.00410c30
mov ecx, dword [0x4a366c]
mov esi, eax
cmp ecx, esi
mov dword [esp + 0x28], esi
jne 0x41528a
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00401080
xor al, al
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
cmp dword [ebp + 0x24], ebx
jne 0x415352
mov eax, dword [esp + 0x20]
add ebp, 0x1c
mov ebx, eax
cmp esi, ebx
jae 0x4152a2
mov ebx, esi
lea edx, [esp + 0x18]
cmp ebp, edx
jne 0x4152c3
push ecx
push ebx
mov ecx, ebp
call fcn.004010d0
push 0
push 0
mov ecx, ebp
call fcn.004010d0
jmp 0x41534e
test ebx, ebx
jbe 0x41530f
cmp ebx, eax
jne 0x41530f
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4152d8
mov eax, 0x4a3668
cmp byte [eax - 1], 0xfe
jae 0x41530f
push 1
mov ecx, ebp
call fcn.00401080
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4152f4
mov eax, 0x4a3668
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x41534e
push 1
push ebx
mov ecx, ebp
call fcn.00401210
test al, al
je 0x41534e
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x41532a
mov esi, 0x4a3668
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
mov byte [ebp + ebx], 0
add ebp, ebx
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x4154af
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, eax
sub edi, esi
lea ebp, [ecx + 0x2c]
dec edi
inc esi
cmp eax, esi
jae 0x41537b
call fcn.0042e263
mov eax, dword [esp + 0x20]
mov ebx, eax
sub ebx, esi
cmp edi, ebx
jae 0x415385
mov ebx, edi
lea edx, [esp + 0x18]
cmp ebp, edx
jne 0x4153ac
mov eax, dword [0x4a366c]
add ebx, esi
push eax
push ebx
mov ecx, ebp
call fcn.004010d0
push esi
push 0
mov ecx, ebp
call fcn.004010d0
jmp 0x415430
test ebx, ebx
jbe 0x4153f8
cmp ebx, eax
jne 0x4153f8
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4153c1
mov eax, 0x4a3668
cmp byte [eax - 1], 0xfe
jae 0x4153f8
push 1
mov ecx, ebp
call fcn.00401080
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4153dd
mov eax, 0x4a3668
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x415430
push 1
push ebx
mov ecx, ebp
call fcn.00401210
test al, al
je 0x415430
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x415413
mov eax, 0x4a3668
mov edi, dword [ebp + 4]
mov ecx, ebx
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004011f0
mov eax, dword [0x4a366c]
push 1
lea ecx, [esp + 0x17]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x1f], 0x2e
call fcn.00410c30
mov edi, dword [0x4a366c]
mov esi, eax
cmp edi, esi
je 0x4154ab
cmp dword [ebp + 8], esi
jae 0x41545f
call fcn.0042e263
mov ecx, ebp
call fcn.00402c70
mov eax, dword [ebp + 8]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x415473
mov edi, ecx
test edi, edi
jbe 0x4154ab
mov edx, dword [ebp + 4]
sub eax, edi
sub eax, esi
lea ecx, [edx + edi]
add edx, esi
add ecx, esi
push eax
push ecx
push edx
call fcn.00420980
mov esi, dword [ebp + 8]
add esp, 0xc
sub esi, edi
mov ecx, ebp
push 0
push esi
call fcn.00401210
test al, al
je 0x4154ab
push esi
mov ecx, ebp
call fcn.004011f0
mov ebp, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00401080
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x41526f
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x41526f
cmp dword [ebp + 0x3c], 0x1fffffff
jne 0x4154f2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
mov dword [ebp + 0x3c], eax
mov edx, dword [ebp + 0x3c]
lea eax, [ebp + 0x2c]
push edx
push eax
mov ecx, ebp
call fcn.00415510
jmp 0x415271