Function at 0x401c00
Capabilities:
Get geographical location
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c83e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 0x80
mov dword [ebp - 0x2c], 0
push dword [0x58e970]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.USER32.dll_SetClassLongW]
mov edi, eax
push edi
push 0xfffffffffffffff2
push ebx
call esi
push edi
push 0xffffffffffffffde
push ebx
call esi
mov dword [ebp - 4], 0
call fcn.004363ea
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x402257
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x478b88
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00403c20
test al, al
jne 0x401ca8
push 0x19
push 0x478b88
lea ecx, [ebp - 0x18]
call fcn.00403e20
push 7
push str._24.7.0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.004037d0
push 0x3f2
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp - 0x18]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x50]
call fcn.00436896
mov byte [ebp - 4], 3
call fcn.004044f0
test al, al
jne 0x401cf8
lea ecx, [ebp - 0x30]
call fcn.0040dcf0
mov byte [ebp - 4], 4
jmp 0x401d10
lea ecx, [ebp - 0x50]
call fcn.00404690
test al, al
jne 0x401d46
lea ecx, [ebp - 0x30]
call fcn.0040dcf0
mov byte [ebp - 4], 5
push dword [eax]
push str.Error:_Installer_file__s_corrupt
push ebx
call fcn.004019f0
mov edx, dword [ebp - 0x30]
or ebx, 0xffffffff
mov eax, ebx
add edx, 0xfffffff0
add esp, 0xc
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401d3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0xd], 0
jmp 0x402225
lea ecx, [ebp - 0x28]
call fcn.00404480
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
push ecx
call fcn.00405580
add esp, 8
or ebx, 0xffffffff
test al, al
jne 0x401d82
push dword [ebp - 0x28]
push 0x478c18
push dword [ebp - 0x14]
call fcn.004019f0
add esp, 0xc
mov byte [ebp - 0xd], 0
jmp 0x40220b
cmp dword [ebp - 0x48], 0
jle 0x402261
mov eax, dword [ebp - 0x4c]
push 0x3ed
push dword [ebp - 0x14]
mov edi, dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push eax
mov eax, dword [sym.imp.USER32.dll_SetWindowTextW]
call eax
cmp dword [ebp - 0x48], 1
jle 0x402261
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00403700
mov ebx, eax
add esp, 4
lea eax, [ebx + 0x10]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x48], 1
jle 0x402261
mov eax, dword [ebp - 0x4c]
push 0x3ef
push dword [ebp - 0x14]
mov edi, dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.00406ab0
test eax, eax
jne 0x401e4d
lea ecx, [ebp - 0x30]
call fcn.0040dcf0
mov byte [ebp - 4], 8
push dword [eax]
push str.Error:_Installer_file__s_corrupt
push dword [ebp - 0x14]
call fcn.004019f0
mov edx, dword [ebp - 0x30]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401e44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0xd], 0
jmp 0x4021f2
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push dword [eax]
call fcn.004038c0
mov esi, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call fcn.004038c0
push 0x478c20
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
call fcn.00403630
push esi
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
push eax
call fcn.00402d50
add esp, 0x18
mov esi, dword [eax]
push 0x3ee
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call edi
mov edx, dword [ebp - 0x30]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401ec4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401ede
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401ef8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401f16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
call fcn.00406d70
mov eax, dword [0x58eb68]
add eax, 0xfffffff0
push eax
call fcn.00403700
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea esi, [eax + 0x10]
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
mov eax, dword [sym.imp.USER32.dll_SetWindowTextW]
call eax
mov edx, dword [ebp - 0x30]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401f6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.00404480
movzx eax, word [0x58eb64]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xf
call fcn.004363ea
mov ecx, eax
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x402266
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xd
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], 3
mov eax, dword [ebp - 0x20]
push 0
movzx eax, ax
push 2
push eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, eax
mov dword [ebp - 0x24], edx
test edx, edx
je 0x402022
js 0x402270
mov eax, dword [ebp - 0x38]
mov ecx, 1
push edx
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x401ff1
lea ecx, [ebp - 0x1c]
call fcn.004041a0
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push esi
movzx eax, cx
push 2
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
js 0x402270
cmp eax, dword [esi - 8]
jg 0x402270
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x402034
push 0x12
push str._Unknown_language_
lea ecx, [ebp - 0x1c]
call fcn.00403e20
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push esi
movzx eax, cx
push eax
lea eax, [ebp - 0x30]
push str._04x__s
push eax
call fcn.00403530
add esp, 0x10
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402068
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x3e9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [ebp - 0x30]
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x34]
call fcn.00404d30
mov esi, dword [ebp - 0x34]
push 0x3ea
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [0x58e97d], 0
mov esi, dword [ebp - 0x14]
push 0
je 0x4020c5
push 0x4de
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4020df
push 1
push 0xf1
push 0x4de
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x24]
call fcn.00404480
mov byte [ebp - 4], 0x11
cmp byte [0x58e97c], 0
je 0x402115
cmp byte [0x58e97d], 0
lea ecx, [ebp - 0x24]
je 0x402109
push 0x20
push str.This_layout_is_already_installed
jmp 0x402110
push 0x37
push str.A_different_version_of_this_layout_is_already_installed
call fcn.00403e20
push 0x3f1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp - 0x24]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [0x58e97c], 0
je 0x402158
cmp byte [0x58e97d], 0
jne 0x402158
push str.Reinstall
push 0x3eb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
cmp byte [0x58e97d], al
push 0x3eb
push dword [ebp - 0x14]
sete al
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
movzx eax, byte [0x58e97c]
push 0x3ec
push dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea edx, [esi - 0x10]
mov byte [ebp - 0xd], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4021be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4021d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4021ef
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov edx, ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40220b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402225
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x50]
call fcn.004368ad
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402242
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404410
call fcn.00436600
push 0x80004005
call fcn.00404410
push 0x80070057
call fcn.00404410
int3