Function at 0x4049e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov dword [ebp - 8], 0xa84
mov dword [ebp - 0x30], 0x22
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00404780
add esp, 0xc
mov dword [ebp - 0x24], 0xf9ca09b3
cmp dword [ebp - 0x24], 0x368e
jl 0x404a8b
mov eax, dword [ebp - 8]
or eax, 0x15
imul eax, dword [ebp - 0x30]
imul eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x24]
jne 0x404a59
lea edx, [ebp - 0x24]
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax]
and ecx, 0xff6300e2
imul ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
sub edx, ecx
mov dword [ebp - 0x24], edx
jmp 0x404a89
mov dword [ebp - 0x40], 0xf9ec23d5
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
add ecx, 1
cdq
idiv ecx
imul eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
or edx, 0xf22d361a
sub edx, dword [ebp - 8]
imul edx, dword [ebp - 8]
mov dword [ebp - 8], edx
jmp 0x404aa7
lea eax, [ebp - 8]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
sub eax, edx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
sub edx, ecx
mov dword [ebp - 0x24], edx
call fcn.00402b10
mov dword [ebp - 0x44], 0x96
mov dword [ebp - 0xbc], 0xf7bfaccc
mov eax, dword [ebp - 0xbc]
and eax, dword [ebp - 0xbc]
imul eax, dword [ebp - 0x44]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
and ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x44]
and edx, 0x3555
sub ecx, edx
mov eax, dword [ebp - 0x44]
sub eax, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc4], 0xda1b
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xf4], ecx
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx]
cdq
idiv ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x60], 0x70
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov eax, dword [ebp - 0xf8]
cdq
idiv ecx
imul eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0
jmp 0x404b5f
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 4
jge 0x404ba6
mov dword [ebp - 0xfc], 0x2a0e
mov dword [ebp - 0x48], 0x25d1
mov eax, dword [ebp - 0xfc]
add eax, dword [ebp - 0x48]
imul eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], 0x31
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x48]
add eax, dword [edx]
mov dword [ebp - 0x70], eax
jmp 0x404b56
mov dword [ebp - 0x68], 0
jmp 0x404bb8
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 2
jge 0x404c34
call fcn.00404570
mov dword [ebp - 0x70], 0x2c
mov dword [ebp - 0x34], 0xa441
mov edx, dword [ebp - 0x70]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfcbfb415
jg 0x404c2f
mov dword [ebp - 0x6c], 0xf0966565
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 0x6c]
and edx, 0xf6d8f4fa
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax]
or ecx, 0xf85c823d
add edx, ecx
mov dword [ebp - 0xc8], edx
mov ecx, dword [ebp - 0x6c]
add ecx, 1
mov eax, dword [ebp - 0x70]
cdq
idiv ecx
add eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc8], eax
jmp 0x404baf
push str.Invalid_viewport_index
push str.V42DC_EV_RMT_CMD_DONE
push str._s_Dealloc__d_bytes___Used__d_
call fcn.00404780
add esp, 0xc
mov dword [ebp - 0xd0], 0x7b
mov dword [ebp - 0xcc], 0x89ef
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax]
or ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xcc]
or edx, dword [ebp - 0xd0]
sub ecx, edx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x74], 0
jmp 0x404c9f
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 2
jge 0x404ca7
jmp 0x404c96
call fcn.00404500
mov dword [ebp - 0x78], 0
jmp 0x404cbe
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 3
jge 0x404d0b
call fcn.00404640
mov dword [ebp - 0x4c], 0xba21
mov dword [ebp - 0x38], 0xc
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x110], edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx]
and edx, 0xf6fea5f3
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
add ecx, edx
mov edx, dword [ebp - 0x38]
sub edx, ecx
mov dword [ebp - 0x38], edx
jmp 0x404cb5
mov dword [ebp - 0xd4], 0x75
mov dword [ebp - 0x38], 0xf1fcde65
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x114]
mov eax, dword [edx]
cdq
idiv ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov edx, dword [ecx]
sub edx, dword [ebp - 0xd4]
imul edx, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0xd8], 0xfc5fe2de
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
mov ecx, dword [edx]
imul ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], 0
jmp 0x404da2
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 5
jge 0x404de0
call fcn.00404500
mov dword [ebp - 0x124], 0x2d67
cmp dword [ebp - 0x124], 0xb573
jg 0x404dde
mov dword [ebp - 0x128], 0xfaf06607
mov eax, dword [ebp - 0x128]
imul eax, dword [ebp - 0x80]
imul eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
jmp 0x404d99
mov dword [ebp - 0x54], 0
jmp 0x404df2
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0x61a8
jge 0x404fda
mov dword [ebp - 0x84], 0
jmp 0x404e1a
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 1
jge 0x404e70
mov dword [ebp - 0x3c], 0x73
mov dword [ebp - 0xdc], 0x43
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xdc]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xdc]
or ecx, 0x968e
sub ecx, dword [ebp - 0x3c]
imul ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x18], 0x81
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
jmp 0x404e0b
mov dword [ebp - 0x18], 0xe364
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x8c], 0xfbe4e437
cmp dword [ebp - 0x8c], 0xf94db20d
je 0x404ed3
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x130], 0xfcb9ef1b
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx]
imul eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x404f1d
mov dword [ebp - 0x1c], 0x88
mov dword [ebp - 0xe0], 0x6102
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x134], edx
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx]
or edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
and ecx, 0x810c
sub edx, ecx
mov dword [ebp - 0x170], edx
call fcn.00404570
mov dword [ebp - 0x88], 0
jmp 0x404f3d
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x88], 5
jge 0x404fa3
mov dword [ebp - 0x90], 0x3e35
lea eax, [ebp - 0x90]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x140]
add eax, dword [ecx]
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x1c], 0x79
mov edx, dword [ebp - 0x1c]
and edx, 0xb5
add edx, dword [ebp - 0x90]
imul edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
jmp 0x404f2e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x50], 0x48fc
mov eax, dword [ebp - 0x50]
or eax, 0xa4
imul eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
sub ecx, eax
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x3b4]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
jmp 0x404de9
mov dword [ebp - 0x94], 0
jmp 0x404ff5
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 2
jge 0x405100
mov dword [ebp - 4], 0xdf
cmp dword [ebp - 4], 0xfc75a2fb
jl 0x405068
mov dword [ebp - 0x20], 0xf652c7db
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x5e
mov eax, dword [ebp - 4]
or eax, 0xf7542d1b
mov ecx, dword [ebp - 0xc]
add ecx, 1
cdq
idiv ecx
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x20]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x20]
and eax, 0xeb
mov ecx, dword [ebp - 0x144]
imul eax, dword [ecx]
imul eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4050b9
lea edx, [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0xc], 0xfba57c7d
mov dword [ebp - 0x98], 0xf0cf8283
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x98]
imul eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x148], 0xe5fc
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x98]
sub edx, ecx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xc], 0x7ed3
cmp dword [ebp - 0xc], 0xf4d85595
jne 0x4050e9
mov dword [ebp - 0x20], 0x44b6
mov dword [ebp - 0x14c], 0xf9a0b2f2
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14c]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov eax, dword [ebp - 4]
cdq
idiv ecx
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x404fe6
mov dword [ebp - 4], 0xe4b0
mov dword [ebp - 0xc], 0xb8b7
mov edx, dword [ebp - 4]
and edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
and eax, dword [ebp - 4]
add edx, eax
imul edx, dword [ebp - 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x54], 0x61a8
jne 0x4052ba
mov dword [ebp - 0x194], 0
xor ecx, ecx
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x9c], 0
jmp 0x405175
mov edx, dword [ebp - 0x9c]
add edx, 1
mov dword [ebp - 0x9c], edx
cmp dword [ebp - 0x9c], 1
jge 0x405199
mov dword [ebp - 0x58], 0xfee80c47
mov eax, dword [ebp - 0x58]
or eax, 0xf9c4a1ee
imul eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x58], eax
jmp 0x405166
call fcn.00402b10
mov dword [ebp - 0xa0], 0
jmp 0x4051b9
mov ecx, dword [ebp - 0xa0]
add ecx, 1
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 4
jge 0x405205
mov dword [ebp - 0x28], 0xf01b7c80
mov edx, dword [ebp - 0x28]
imul edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
sub eax, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xe4], 0xf01f48da
cmp dword [ebp - 0xe4], 0xe4
jg 0x405203
mov ecx, dword [ebp - 0x28]
or ecx, dword [ebp - 0x28]
imul ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x28]
sub edx, ecx
mov dword [ebp - 0x28], edx
jmp 0x4051aa
call fcn.00404570
mov dword [ebp - 0xe8], 0xfac6af59
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0xe8]
and ecx, 0x130b
mov edx, dword [ebp - 0x150]
mov eax, dword [edx]
sub eax, ecx
mov dword [ebp - 0x178], eax
call fcn.00404920
mov dword [ebp - 0xa4], 0
jmp 0x40525c
mov ecx, dword [ebp - 0xa4]
add ecx, 1
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 4
jge 0x40528e
mov dword [ebp - 0xa8], 0xf3cd1a03
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.00404780
add esp, 0xc
jmp 0x40524d
mov dword [ebp - 0x5c], 0xdbd4
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x5c]
or eax, 0xf9650cbe
mov ecx, dword [ebp - 0x154]
imul eax, dword [ecx]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
call fcn.004012a0
mov dword [ebp - 0xac], 0
jmp 0x4052d5
mov edx, dword [ebp - 0xac]
add edx, 1
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 4
jge 0x405318
mov dword [ebp - 0x10], 0xf45926ab
mov eax, dword [ebp - 0x10]
push eax
call fcn.004046b0
add esp, 4
mov dword [ebp - 0x14], 0xfa9c4c53
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov eax, dword [ebp - 0x10]
cdq
idiv ecx
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
sub eax, edx
mov dword [ebp - 0x2c], eax
jmp 0x4052c6
mov dword [ebp - 0x10], 0xfe796933
mov dword [ebp - 0x2c], 0x4f
mov dword [ebp - 0x14], 0xefe3
mov ecx, dword [ebp - 0x2c]
or ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xb0], 0
jmp 0x405358
mov edx, dword [ebp - 0xb0]
add edx, 1
mov dword [ebp - 0xb0], edx
cmp dword [ebp - 0xb0], 5
jge 0x405436
mov dword [ebp - 0xb4], 0x4e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0xb4]
sub edx, dword [ecx]
imul edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xb4], 0x40f1
je 0x4053de
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x160]
add eax, dword [ecx]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x164], 0xfde619a8
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x164]
imul edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
jmp 0x405407
call fcn.00404570
mov dword [ebp - 0xb8], 0xffc6
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb8]
sub ecx, eax
mov dword [ebp - 0xb8], ecx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x168], edx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov edx, dword [ebp - 0x168]
mov eax, dword [edx]
cdq
idiv ecx
imul eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x405349
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10