Function at 0x456730
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4d1fe8]
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jne 0x4569e7
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1d8]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0046aa90
add esp, 8
mov dword [esi + 0x1d4], eax
call fcn.00453a80
mov dword [esi + 0x1dc], eax
call fcn.00453e70
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1e4], edi
mov dword [esi + 0x1e8], edi
call fcn.004565d0
mov edi, eax
mov esi, dword [edi + 0xc]
mov dword [esp + 0x14], edi
cmp esi, dword [edi + 0x10]
jbe 0x4567ae
call fcn.0048b4bc
mov ecx, dword [edi]
lea ebx, [esi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
jmp 0x4567c0
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x4567d1
call fcn.0048b4bc
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
test ecx, ecx
je 0x4567db
cmp ecx, eax
je 0x4567e4
call fcn.0048b4bc
mov ecx, dword [esp + 0x20]
lea edi, [ebx - 4]
cmp edi, esi
je 0x456987
test ecx, ecx
jne 0x456963
call fcn.0048b4bc
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x456808
call fcn.0048b4bc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
mov esi, ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
call fcn.004566b0
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx]
test edi, edi
je 0x45683a
cmp edi, eax
je 0x45683f
call fcn.0048b4bc
cmp dword [esp + 0x1c], esi
je 0x4568a0
test edi, edi
jne 0x45696a
call fcn.0048b4bc
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x456862
call fcn.0048b4bc
mov edx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
movzx ecx, word [edx + 0x1e]
mov eax, dword [esi + 0x1e4]
cmp eax, ecx
jg 0x45689a
test edi, edi
jne 0x456971
call fcn.0048b4bc
mov edx, dword [esp + 0x1c]
cmp edx, dword [edi + 0x18]
jne 0x456892
call fcn.0048b4bc
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0x1e]
mov dword [esi + 0x1e4], eax
lea ecx, [esp + 0x30]
mov eax, 1
push ecx
lea edx, [esp + 0x3c]
push edx
mov esi, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.004566b0
mov edi, dword [esp + 0x38]
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx]
test edi, edi
je 0x4568cf
cmp edi, eax
je 0x4568d4
call fcn.0048b4bc
mov ebx, dword [esp + 0x3c]
cmp ebx, esi
je 0x45692d
test edi, edi
jne 0x456978
call fcn.0048b4bc
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4568f5
call fcn.0048b4bc
mov esi, dword [ebp + 8]
movzx ecx, word [ebx + 0x1e]
mov eax, dword [esi + 0x1e4]
cmp eax, ecx
jg 0x45691d
test edi, edi
jne 0x45697f
call fcn.0048b4bc
cmp ebx, dword [edi + 0x18]
jne 0x456919
call fcn.0048b4bc
movzx eax, word [ebx + 0x1e]
mov dword [esi + 0x1e4], eax
mov dword [esi + 0x1e8], 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x456983
call fcn.0048b4bc
xor eax, eax
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffc
cmp ecx, dword [eax + 0x10]
jb 0x45694d
call fcn.0048b4bc
add dword [esp + 0x10], 0x24
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
jmp 0x4567c0
mov eax, dword [ecx]
jmp 0x4567fe
mov eax, dword [edi]
jmp 0x456854
mov edi, dword [edi]
jmp 0x456884
mov eax, dword [edi]
jmp 0x4568eb
mov edi, dword [edi]
jmp 0x45690f
mov eax, dword [eax]
jmp 0x45693c
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
shr eax, 0xa
cmp ecx, 9
jne 0x4569a7
cmp eax, 1
jne 0x4569d2
jmp 0x4569d4
cmp ecx, 4
jne 0x4569d2
cmp eax, 2
je 0x4569b5
cmp eax, ecx
jne 0x4569bc
mov eax, 2
jmp 0x4569d4
cmp eax, 1
je 0x4569cb
cmp eax, 3
je 0x4569cb
cmp eax, 5
jne 0x4569d2
mov eax, 3
jmp 0x4569d4
xor eax, eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x1ec], eax
mov eax, 1
mov dword [0x4d1fe8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4