Function at 0x402b50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4573c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x47c9a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 0x80
push dword [0x4da4f4]
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
push 0x464630
lea ecx, [ebp - 0x1c]
call fcn.00404700
push 6
push str._1.3.6
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00404200
push dword [ebp - 0x1c]
push 0x3f2
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x50]
call fcn.0042cc09
mov byte [ebp - 4], 1
call fcn.00404a80
test al, al
jne 0x402bfe
lea ecx, [ebp - 0x24]
call fcn.0040d990
mov byte [ebp - 4], 2
jmp 0x402c16
lea ecx, [ebp - 0x50]
call fcn.00404c30
test al, al
jne 0x402c50
lea ecx, [ebp - 0x24]
call fcn.0040d990
mov byte [ebp - 4], 3
push dword [eax]
push str.Error:_Installer_file__s_corrupt
push ebx
call fcn.00402930
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
add esp, 0xc
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402c49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x4030b9
call fcn.0042c800
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402c6c
push 0x80004005
call fcn.004049e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
push ecx
call fcn.00405b10
mov ebx, dword [ebp - 0x20]
add esp, 8
or edi, 0xffffffff
test al, al
jne 0x402cae
push ebx
push 0x4646c0
push dword [ebp - 0x14]
call fcn.00402930
add esp, 0xc
mov byte [ebp - 0xd], 0
jmp 0x403099
cmp dword [ebp - 0x48], 0
jg 0x402cb9
call fcn.0042c9be
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x14]
push dword [eax]
push 0x3ed
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x48], 1
jg 0x402cdf
call fcn.0042c9be
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00404190
mov dword [ebp - 0x38], eax
add esp, 4
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x48], 1
jg 0x402d09
call fcn.0042c9be
mov eax, dword [ebp - 0x4c]
push dword [eax + 4]
push 0x3ef
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00406ef0
test eax, eax
jne 0x402d7b
lea ecx, [ebp - 0x24]
call fcn.0040d990
mov byte [ebp - 4], 6
push dword [eax]
push str.Error:_Installer_file__s_corrupt
push esi
call fcn.00402930
mov byte [ebp - 4], 5
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402d71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov byte [ebp - 0xd], al
jmp 0x40307c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push dword [eax]
call fcn.00404700
mov esi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
call fcn.00404700
push 0x4646c8
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 8
push eax
call fcn.004040b0
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
call fcn.00403960
mov esi, dword [ebp - 0x14]
add esp, 0x18
push dword [eax]
push 0x3ee
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x24]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402df5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov ecx, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402e15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402e35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402e55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
call fcn.004071b0
lea eax, [ebp - 0x34]
mov ecx, 0x4da710
push eax
call fcn.00410920
push dword [eax]
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x34]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402e9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
call fcn.00404a50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
mov edx, dword [0x4da714]
movzx esi, dx
call fcn.004051e0
mov byte [ebp - 4], 0xb
push dword [eax]
lea eax, [ebp - 0x24]
push esi
push str._04x__s
push eax
call fcn.00403ff0
mov byte [ebp - 4], 0xa
add esp, 0x10
mov edx, dword [ebp - 0x34]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402ef1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
push edi
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x28]
call fcn.00405310
push dword [ebp - 0x28]
push 0x3ea
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [0x4da4f0], 0
push 0
je 0x402f49
push 0x4de
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x402f63
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 - 0x18]
call fcn.00404a50
mov byte [ebp - 4], 0xd
cmp byte [0x4da4f1], 0
je 0x402f95
cmp byte [0x4da4f0], 0
lea ecx, [ebp - 0x18]
je 0x402f8b
push str.This_layout_is_already_installed
jmp 0x402f90
push str.A_different_version_of_this_layout_is_already_installed
call fcn.004046b0
mov esi, dword [ebp - 0x18]
push esi
push 0x3f1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [0x4da4f1], 0
je 0x402fda
cmp byte [0x4da4f0], 0
jne 0x402fda
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 [0x4da4f0], al
sete al
push eax
push 0x3eb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
movzx eax, byte [0x4da4f1]
push eax
push 0x3ec
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea edx, [esi - 0x10]
mov byte [ebp - 0xd], 1
or esi, 0xffffffff
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40303c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov ecx, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40305c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 5
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40307c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov ecx, edi
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403099
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4030b6
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, byte [ebp - 0xd]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0042cc20
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4030e6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret