Function at 0x4480a3
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbe4
push esi
push edi
mov ecx, 0x47cfe0
call fcn.00401782
movzx eax, al
test eax, eax
jne 0x4480cc
movzx eax, byte [ebp + 0x20]
test eax, eax
jne 0x4480cc
jmp 0x448947
lea ecx, [ebp - 0x4b4]
call fcn.00411345
lea ecx, [ebp - 0x338]
call fcn.00401cb7
lea ecx, [ebp - 0xbe4]
call fcn.00401cb7
and dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x338]
call fcn.00408b89
lea ecx, [ebp - 0xbe4]
call fcn.00408b4f
mov eax, dword [ebp - 0x1c]
cdq
push 0x64
pop ecx
idiv ecx
push edx
mov eax, dword [ebp - 0x1c]
cdq
push 0x64
pop ecx
idiv ecx
push eax
push 0x6b2
push dword [ebp + 8]
push str._s_5._d__Windows_NT__d._d
lea eax, [ebp - 0x4b4]
push eax
call fcn.0040c813
add esp, 0x18
lea ecx, [ebp - 0xbe4]
call fcn.00401782
movzx eax, al
test eax, eax
jne 0x44816e
push 0x462cdc
lea ecx, [ebp - 0x4b4]
call fcn.0040c7b8
lea eax, [ebp - 0xbe4]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0040c9a2
push 0x462ce4
lea ecx, [ebp - 0x4b4]
call fcn.0040c7b8
lea ecx, [ebp - 0x8c4]
call fcn.00409bff
mov ax, word [0x45ad90]
mov word [ebp - 0xe8], ax
push 0x7e
push 0
lea eax, [ebp - 0xe6]
push eax
call fcn.004183a0
add esp, 0xc
push 0x100
push 0x80
lea eax, [ebp - 0xe8]
push eax
push 0x45cf30
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408e7e
add esp, 0x10
movzx eax, al
test eax, eax
je 0x4481ea
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0xe8]
test eax, eax
jne 0x44824d
push 0x100
push 0x80
lea eax, [ebp - 0xe8]
push eax
push 0x45cf30
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, SysReAllocString
call fcn.00408e7e
add esp, 0x10
movzx eax, al
test eax, eax
je 0x44822b
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0xe8]
test eax, eax
jne 0x44824d
push 2
pop eax
imul eax, eax, 0
xor ecx, ecx
mov word [ebp + eax - 0xe8], cx
push 0x3f
lea edx, [ebp - 0xe8]
mov cx, 0x54
call fcn.00447835
pop ecx
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0xe8]
test eax, eax
je 0x4482a6
lea eax, [ebp - 0xe8]
push eax
push 0x462ce8
lea eax, [ebp - 0x8c4]
push eax
call fcn.0040c813
add esp, 0xc
mov dword [ebp - 0x24], 0x80
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], 0
je 0x4482a6
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
jmp 0x44828a
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x68]
call fcn.00408955
push str.tid
lea ecx, [ebp - 0x8c4]
call fcn.0040c7b8
and dword [ebp - 0xc], 0
jmp 0x4482d4
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x10
jge 0x44830b
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x68]
push eax
push 0x45ad7c
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
jmp 0x4482cd
lea ecx, [ebp - 0x9d4]
call fcn.00411345
push 0x455d78
push 0x10
pop edx
lea ecx, [ebp - 0x68]
call fcn.0043a73a
pop ecx
and dword [ebp - 0x10], 0
jmp 0x448334
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x10
jge 0x44836b
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x68]
push eax
push 0x46079c
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x9d4]
call fcn.0040c9a2
jmp 0x44832d
mov dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x68]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
je 0x448394
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
jmp 0x448378
cmp dword [0x47ecb8], 0
je 0x4483c9
push dword [0x47ecb8]
push str._sta_u
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
push 0x6b2
push str._build_d
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
cmp dword [ebp + 0xc], 0
je 0x44842d
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
test eax, eax
je 0x44842d
push dword [ebp + 0xc]
push str._mqlogin_s
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
cmp dword [ebp + 0x10], 0
je 0x44848d
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
test eax, eax
je 0x44848d
push dword [ebp + 0x10]
push str._server_s
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
push 0x462d5c
lea ecx, [ebp - 0x338]
call fcn.00411d77
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jle 0x44847b
push dword [ebp - 0x40]
lea ecx, [ebp - 0x338]
call fcn.0040778e
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
cmp dword [ebp + 0x10], 0
je 0x4485b5
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
test eax, eax
je 0x4485b5
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
je 0x4485b5
lea ecx, [ebp - 0x3a4]
call fcn.0043a71b
push 0x462d60
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_I64u:_s
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0x18
lea ecx, [ebp - 0x338]
call fcn.0040d17d
shl eax, 1
push eax
lea ecx, [ebp - 0x338]
call fcn.00401799
push eax
lea ecx, [ebp - 0x3a4]
call fcn.0043a631
lea ecx, [ebp - 0x3a4]
call fcn.0043a5be
push 0x3f
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x3a4]
call fcn.0043a55c
lea eax, [ebp - 0xe8]
push eax
push str._srvid_s
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
mov dword [ebp - 0x34], 0x80
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x34], 0
je 0x44857b
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
jmp 0x44855f
cmp dword [ebp + 0x1c], 0
je 0x4485aa
push dword [ebp + 0x1c]
push str._srvlast_u
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
lea ecx, [ebp - 0x3a4]
call fcn.0043a6ef
push 2
pop eax
imul eax, eax, 0
xor ecx, ecx
mov word [ebp + eax - 0xe8], cx
push 0x100
push 0x80
lea eax, [ebp - 0xe8]
push eax
push 0x462db8
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, SysReAllocString
call fcn.00408e7e
add esp, 0x10
movzx eax, al
test eax, eax
je 0x448633
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0xe8]
test eax, eax
je 0x448633
lea eax, [ebp - 0xe8]
push eax
push str._gid_s
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
lea ecx, [ebp - 0x338]
call fcn.0040b2f3
push 0x100
push 0x80
lea eax, [ebp - 0xe8]
push eax
push str.Install.Time
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, SysReAllocString
call fcn.00408e7e
add esp, 0x10
movzx eax, al
test eax, eax
je 0x448707
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0xe8]
test eax, eax
je 0x448707
lea eax, [ebp - 0xe8]
push eax
call fcn.00425442
pop ecx
cdq
mov esi, eax
mov edi, edx
push 0
call fcn.004233e0
pop ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x54]
jg 0x448705
jl 0x4486bf
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x58]
jae 0x448705
push 0
call fcn.004233e0
pop ecx
mov esi, eax
mov edi, edx
lea eax, [ebp - 0xe8]
push eax
call fcn.00425442
pop ecx
cdq
sub esi, eax
sbb edi, edx
push edi
push esi
push str._age_I64d
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0x10
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x8c4]
call fcn.0040c9a2
jmp 0x448764
push 0
call fcn.004233e0
pop ecx
push edx
push eax
push str._I64d
lea eax, [ebp - 0x338]
push eax
call fcn.0040c813
add esp, 0x10
push 0x100
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, SysReAllocString
call fcn.00406c90
pop ecx
push 0x100
lea ecx, [ebp - 0x338]
call fcn.00401799
push eax
push 1
push str.Install.Time
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, SysReAllocString
call fcn.00406cf0
add esp, 0x10
mov dword [ebp - 0x3c], 0x80
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x3c], 0
je 0x448790
mov eax, dword [ebp - 0x38]
mov byte [eax], 0
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
jmp 0x448774
lea ecx, [ebp - 0x8c4]
call fcn.00447791
lea ecx, [ebp - 0x8c4]
call fcn.00401799
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
je 0x4487f0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x20
jne 0x4487c7
push 0x2b
pop eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x20
jl 0x4487dd
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x7f
jle 0x4487e6
push 0x5f
pop eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
jmp 0x4487a9
push 0x40
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.004183a0
add esp, 0xc
push 0x3f
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
movzx ecx, ax
lea edx, [ebp - 0x128]
call fcn.00435241
pop ecx
movzx eax, al
test eax, eax
jne 0x44882f
xor eax, eax
inc eax
imul eax, eax, 0
mov byte [ebp + eax - 0x128], 0
mov ecx, 0x4ab42c
call fcn.0040d5e6
lea eax, [ebp - 0x4b4]
push eax
mov ecx, 0x47cfe0
call fcn.0040d181
lea eax, [ebp - 0x8c4]
push eax
mov ecx, 0x47d0f0
call fcn.0040d181
lea eax, [ebp - 0x9d4]
push eax
mov ecx, 0x47d630
call fcn.0040d181
xor eax, eax
inc eax
imul eax, eax, 0
movsx eax, byte [ebp + eax - 0x128]
test eax, eax
je 0x4488dc
mov dword [ebp - 0x18], 0x45ae78
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x18]
cmp al, byte [ecx]
jne 0x4488c8
cmp byte [ebp - 5], 0
je 0x4488c2
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 1]
mov byte [ebp - 6], al
mov ecx, dword [ebp - 0x18]
cmp al, byte [ecx + 1]
jne 0x4488c8
add dword [ebp - 0x14], 2
add dword [ebp - 0x18], 2
cmp byte [ebp - 6], 0
jne 0x44888e
and dword [ebp - 0x44], 0
jmp 0x4488d0
sbb eax, eax
or eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x4488ed
push 0x45dae8
mov ecx, 0x47d300
call fcn.0040c54b
jmp 0x448906
lea eax, [ebp - 0x128]
push eax
push str._S_en
push 0x47d300
call fcn.0040c813
add esp, 0xc
mov ecx, 0x4ab42c
call fcn.0040d61d
lea ecx, [ebp - 0x9d4]
call fcn.00401c2f
lea ecx, [ebp - 0x8c4]
call fcn.00401c2f
lea ecx, [ebp - 0xbe4]
call fcn.00401c2f
lea ecx, [ebp - 0x338]
call fcn.00401c2f
lea ecx, [ebp - 0x4b4]
call fcn.00401c2f
pop edi
pop esi
mov esp, ebp
pop ebp
ret