Function at 0x1005cc5c
Capabilities:
Compare security identifiers
Get keyboard layout
Query or enumerate registry key
Read .ini file

Disassembly:
mov eax, 0x10142a54
call fcn.1013e250
sub esp, 0x164
movdqa xmm0, xmmword [0x1000eac0]
lea eax, [ebp - 0x144]
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ecx
push eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x68], ebx
movdqu xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x64], ebx
call fcn.10014f3b
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x28], 0xd4e7937d
or edi, 0xffffffff
mov dword [ebp - 0x28], 0x8462751c
push 2
pop esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x28], 0xfffffffc
mov dword [ebp - 0x28], 0x9d4346
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x28], 0xb2b74c38
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x28], 0x67101392
mov dword [ebp - 0x28], 0xfffffff9
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x28], 0x421e0bec
mov dword [ebp - 0x28], 0x826a056e
push 3
call fcn.10013ee8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x28], 0x1aa84cbe
push 3
mov dword [ebp - 0x28], 0xc22c9208
pop edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], ebx
jmp 0x1005cd40
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x11c]
mov dword [eax + ecx*4], edi
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edx
jl 0x1005cd31
dec dword [ebp - 0x24]
lea ecx, [ebp - 0x11c]
call fcn.100144eb
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], edi
call fcn.100144eb
push dword [ebp + 8]
movdqa xmm0, xmmword [0x1000ea70]
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x1c], 0xdb5cabfc
push eax
mov dword [ebp - 0x20], 0x6f93bd5d
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x24], 5
push ebx
movdqu xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.10014f3b
xor eax, eax
lea ecx, [ebp - 0xf0]
inc eax
push esi
mov dword [ebp - 4], eax
call fcn.10013ee8
mov dword [ebp - 0x10], 0xf39281c1
mov dword [ebp - 0x2c], 0x1f199e1f
mov dword [ebp - 0x10], ebx
jmp 0x1005cdde
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xf0]
mov dword [eax + ecx*4], 0xdc0223de
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jl 0x1005cdcb
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
imul ecx, dword [ebp - 0x24], 0x4006
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0xf0]
setge dl
xor ecx, ecx
cmp edx, eax
setge cl
xor eax, eax
cmp ecx, 0x53a3
setle al
xor ecx, ecx
mov dword [esi + 4], eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
cmp dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
setg cl
xor edx, edx
cmp ecx, eax
setge dl
sub edx, dword [ebp - 0x20]
neg edx
sbb edx, edx
xor eax, eax
inc edx
cmp edx, 0xb0f7
setle al
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 4]
jle 0x1005ce79
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], 0x5d1cc0c7
jg 0x1005ce79
mov eax, ebx
jmp 0x1005ce7c
xor eax, eax
inc eax
mov dword [edi + 4], eax
mov ecx, 0x4043ca31
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
sub ecx, dword [edx + 8]
add eax, ecx
je 0x1005cea0
cmp dword [esi + 4], ebx
je 0x1005cea0
xor esi, esi
inc esi
mov ecx, esi
jmp 0x1005cea5
xor esi, esi
mov ecx, ebx
inc esi
xor eax, eax
cmp ecx, dword [edx + 8]
lea ecx, [ebp - 0xf0]
setne al
mov dword [ebp - 0x10], eax
call fcn.100144eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.100144eb
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x60]
push esi
call fcn.10013ee8
mov dword [ebp - 0x20], 0xc7f05f43
mov dword [ebp - 0x24], 0xa2b8ea2c
mov dword [ebp - 0x10], 0xfaa23240
push 0xfffffffffffffff7
mov dword [ebp - 0x10], 0xef7e2919
mov dword [ebp - 0x14], ebx
pop edi
jmp 0x1005cf07
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x60]
mov dword [eax + ecx*4], edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x1005cefb
mov dword [ebp - 0x14], ebx
jmp 0x1005cf22
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x16c], 4
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1005cf11
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x60]
mov dword [eax], esi
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, ecx
setge dl
add edx, dword [ebp - 0x24]
je 0x1005cf51
mov eax, dword [ebp - 0x60]
cmp dword [eax], ebx
mov eax, esi
jne 0x1005cf53
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
xor edx, edx
imul ecx, eax
mov eax, 0xffff0008
sub eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setg dl
xor ecx, ecx
cmp edx, eax
setne cl
xor edx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x60]
cmp dword [eax], ecx
mov eax, dword [ebp - 0x1c]
setle dl
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x24]
cmp edx, eax
mov eax, dword [ebp - 0x1c]
setne cl
sub eax, ecx
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x10], ebx
jmp 0x1005cfde
mov dword [ebp - 0x24], 0x82a7
mov dword [ebp - 0x2c], 0xb5b0d69b
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005cfdb
push ebx
push esi
push 0x717
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x1005cfac
lea ecx, [ebp - 0x60]
call fcn.100144eb
mov eax, dword [0x1018dddc]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x44], 0x5e3edfa8
push 2
mov dword [ebp - 0x34], 0x391cb4e7
pop edi
mov dword [ebp - 0x20], 0x5a9864ba
mov dword [ebp - 0x10], 0xade0980d
mov dword [ebp - 0x24], 0x5c1d1022
push edi
mov dword [ebp - 0x28], eax
call fcn.10013ee8
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x1c], 0xca3691f6
mov dword [ebp - 0x2c], 0x32e26595
push esi
call fcn.10013ee8
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], 0xcd85
mov dword [ebp - 0x14], ebx
jmp 0x1005d05f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x78]
mov dword [eax + ecx*4], 0xaf72b572
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1005d04f
mov dword [ebp - 0x14], ebx
jmp 0x1005d079
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x90]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x1005d069
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d0d9
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0x7d0
push 0x1a45
push 0x1f12
push ebx
push 0x144f
push 0xe65
call edi
mov esi, dword [sym.imp.USER32.dll_GetDC]
push eax
call esi
push eax
push 0x370
push 0xdd2
push 0x26f7
push 0x1da5
call edi
push eax
call esi
push eax
call dword [sym.imp.GDI32.dll_MaskBlt]
xor esi, esi
push 2
inc esi
pop edi
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
lea eax, [ecx + 1]
cmp eax, esi
ja 0x1005d0fd
mov eax, ebx
test ecx, ecx
je 0x1005d0ff
mov eax, esi
mov ecx, dword [ebp - 0x2c]
imul ecx, eax
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x2c]
cmp ecx, eax
mov ecx, esi
cmovge ecx, ebx
xor eax, eax
cmp ecx, 0x3b91
setg al
cmp eax, esi
jbe 0x1005d129
cmp dword [ebp - 0x10], ebx
je 0x1005d129
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x90]
cmp dword [eax], ebx
je 0x1005d274
mov dword [ebp - 0x24], 0xce724d25
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x2c], 0x15
je 0x1005d269
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0xd8]
push 4
call fcn.10013ee8
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], ebx
jmp 0x1005d17e
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xd8]
mov dword [eax + ecx*4], 0x7874d2d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 4
jl 0x1005d16b
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x20], 0x1c
jne 0x1005d24a
mov esi, dword [ebp - 0xd8]
mov dword [ebp - 0x44], esi
push 3
lea ecx, [ebp - 0xe4]
call fcn.10013ee8
mov dword [ebp - 0x1c], ebx
jmp 0x1005d1bf
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xe4]
mov dword [eax + ecx*4], 0xeb613644
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x1005d1ac
cmp dword [ebp - 0x24], ebx
jne 0x1005d1d2
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 8], ebx
je 0x1005d1d9
mov dword [ebp - 0x1c], 1
mov esi, dword [esi + 8]
xor edx, edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0xe4]
sub esi, dword [edi + 8]
cmp ecx, eax
setl dl
sub esi, edx
sub esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub esi, 9
neg esi
sbb esi, esi
xor ecx, ecx
neg esi
cmp eax, esi
mov esi, dword [ebp - 0x44]
setg cl
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
sub edx, ecx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setle cl
xor eax, eax
cmp ecx, dword [esi + 8]
lea ecx, [ebp - 0xe4]
setle al
mov dword [edi + 8], eax
call fcn.100144eb
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x1c
je 0x1005d19a
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.100144eb
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x15
jne 0x1005d14e
xor esi, esi
inc esi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jmp 0x1005d30b
mov dword [ebp - 0x20], 0xfd11e6ac
mov eax, 0x9fb0e7fb
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], ebx
jl 0x1005d2d9
mov dword [ebp - 0x20], ebx
mov ecx, edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
sub ecx, eax
jne 0x1005d2be
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
dec dword [ebp - 0x1c]
jns 0x1005d2a0
imul eax, dword [ebp - 0x20], 0xc6b9
test eax, eax
je 0x1005d2f9
cmp dword [edx + 4], ebx
jne 0x1005d2f5
cmp dword [ebp - 0x1c], ebx
jne 0x1005d2f5
mov eax, dword [ebp - 0x78]
cmp dword [eax], ebx
je 0x1005d2f9
mov edx, esi
jmp 0x1005d2fb
mov edx, ebx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp edx, eax
setl cl
mov dword [ebp - 0xfc], ecx
lea ecx, [ebp - 0x90]
call fcn.100144eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.100144eb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0xfffffff6
mov dword [ebp - 0x10], 0xfffffffa
mov dword [ebp - 0x20], 0x5cc7
mov dword [ebp - 0x10], esi
push 2
mov dword [ebp - 0x34], 0xdc4b
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [ebp - 0x10], ebx
pop edi
jmp 0x1005d365
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x40], 0x8bbca631
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x1005d357
mov dword [ebp - 0x14], ebx
jmp 0x1005d48d
mov dword [ebp - 0x24], 0x94ff5452
mov dword [ebp - 0x1c], 0x3799040c
mov dword [ebp - 0x10], 0xde90
mov dword [ebp - 0x10], ebx
jmp 0x1005d39d
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x160], 0xfffffff8
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 3
jl 0x1005d38c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x40], ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
jge 0x1005d3cb
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x40]
cmp eax, esi
setge cl
neg ecx
je 0x1005d3f2
mov ecx, esi
cmp dword [ebp - 0x10], ebx
jne 0x1005d3f4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
cmp ecx, dword [ebp + eax*4 - 0x40]
je 0x1005d408
mov eax, dword [ebp - 0x14]
mov ecx, ebx
cmp dword [ebp + eax*4 - 0x40], ebx
je 0x1005d40a
mov ecx, esi
xor eax, eax
cmp ecx, 0xd3ed
setge al
cmp eax, 0x5ad058bb
jle 0x1005d423
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c], 0xfe64
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x1005d464
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d48a
push ebx
push 0x1a9b
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
jmp 0x1005d48a
mov dword [ebp - 0x1c], ebx
jmp 0x1005d485
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d479
push ebx
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x158], esi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jle 0x1005d469
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jle 0x1005d372
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, 0x209f
push edi
setl cl
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc0]
call fcn.10013ee8
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x34], 0x2c40a98c
mov dword [ebp - 0x10], ebx
jmp 0x1005d4d4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc0]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x1005d4c5
mov eax, dword [ebp - 0xc0]
mov dword [eax], ebx
mov dword [ebp - 0x10], 0x18
jmp 0x1005d50e
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d4fa
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d50b
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x1d
jg 0x1005d4ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.100144eb
mov edi, dword [ebp - 0x30]
cmp edi, dword [ebp - 0x28]
jge 0x1005da3b
mov dword [ebp - 0x14], 0x5a136951
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
jmp 0x1005d54c
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x38], 0x8ec0ae97
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jl 0x1005d53e
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jl 0x1005d5ca
mov dword [ebp - 0x24], 0xbf0ddd9c
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x38], ebx
jne 0x1005d580
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x38], ebx
jne 0x1005d580
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x38], ebx
jne 0x1005d580
mov esi, ebx
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setne dl
xor ecx, ecx
cmp edx, eax
push 1
setne cl
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
add eax, 9
add ecx, eax
mov eax, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
mov dword [ebp + eax*4 - 0x38], esi
neg ecx
mov eax, dword [ebp - 0x10]
imul eax, ecx
xor ecx, ecx
cmp esi, eax
pop esi
sete cl
mov dword [ebp - 0x10], ecx
dec dword [ebp - 0x14]
jns 0x1005d559
mov eax, dword [ebp - 0x14]
mov esi, 0x1018dde0
mov dword [ebp - 0x38], eax
test edi, edi
jle 0x1005d6f6
mov eax, dword [esi]
mov dword [ebp - 0x14], 0xd4e793
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], ebx
jmp 0x1005d5ff
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xa8], 0x102071b1
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x1005d5ee
xor edi, edi
mov dword [ebp - 0x14], ebx
inc edi
jmp 0x1005d66e
mov dword [ebp - 0x24], 0x9be5411a
mov dword [ebp - 0x10], ebx
jmp 0x1005d626
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x110], edi
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x1005d619
mov eax, dword [ebp - 0x14]
sub eax, 4
imul eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x1005d63d
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, 0x859495e0
mov eax, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
mov eax, dword [ebp - 0x14]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp eax, ecx
mov eax, dword [ebp - 0x14]
setge dl
mov dword [ebp + eax*4 - 0xa8], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jle 0x1005d60d
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x134]
push 2
call fcn.10013ee8
mov dword [ebp - 0x10], ebx
jmp 0x1005d69b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x134]
mov dword [eax + ecx*4], 0xa684
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x1005d688
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d6ba
push ebx
push 0x1f2
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d6d5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x2582
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x134]
call fcn.100144eb
add esi, 8
test edi, edi
jne 0x1005d6ea
add esi, 8
add esi, dword [ebp - 0x28]
dec dword [ebp - 0x30]
jne 0x1005d5dd
mov edi, dword [esi]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x2c], 3
push 4
mov dword [ebp - 0x24], edi
call fcn.10013ee8
push 1
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 6
call fcn.10013ee8
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], ebx
jmp 0x1005d742
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x128]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jl 0x1005d733
xor edx, edx
mov dword [ebp - 0x1c], ebx
inc edx
jmp 0x1005d75f
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xb4]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edx
jl 0x1005d750
mov eax, dword [ebp - 0x14]
mov ecx, 0xe3cf9575
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0x39f7747
cmp ecx, eax
sbb eax, eax
neg eax
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
jne 0x1005d792
mov ecx, ebx
cmp dword [ebp - 0x14], ebx
je 0x1005d794
mov ecx, edx
mov eax, dword [ebp - 0x2c]
imul eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x2c], 0xfffffff0
cmp dword [ebp - 0x2c], 0xffffffef
jge 0x1005d972
mov edi, 0xffff
jmp 0x1005d7b8
xor edx, edx
inc edx
mov dword [ebp - 0x20], 0xfff6
lea ecx, [ebp - 0x10c]
push edx
call fcn.10013ee8
mov byte [ebp - 4], 8
xor edx, edx
push 0xfffffffffffffffd
pop eax
mov dword [ebp - 0xa0], eax
inc edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x10], ebx
jmp 0x1005d805
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10c]
mov dword [eax + ecx*4], 0xe1c2a91
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edx
jl 0x1005d7f2
mov dword [ebp - 0x14], 0xffffffe2
jmp 0x1005d943
mov dword [ebp - 0x10], 5
lea ecx, [ebp - 0xcc]
push 4
call fcn.10013ee8
mov dword [ebp - 0x1c], ebx
jmp 0x1005d842
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xcc]
mov dword [eax + ecx*4], 0xfffffff8
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jl 0x1005d82f
mov eax, dword [ebp - 0x14]
cmp edi, eax
sbb eax, eax
neg eax
cmp eax, edi
mov eax, dword [ebp - 0x20]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp ecx, eax
setne dl
add edx, dword [ebp - 0x10]
neg edx
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
neg edx
sbb edx, edx
sub eax, 8
inc edx
cmp eax, edx
je 0x1005d8c3
mov dword [ebp - 0x20], ebx
jmp 0x1005d8b7
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d8a0
push 0x1e31
push 0x5c1
push 0xbfd
push 0xfa1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1005d8b4
push 0x206
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], ebx
jle 0x1005d87d
cmp dword [ebp - 0x10], ebx
je 0x1005d92d
jmp 0x1005d935
mov dword [ebp - 0x1c], 0x20be
xor edx, edx
mov dword [ebp - 0x28], 0xfffffff6
mov dword [ebp - 0x30], 0xc894628a
mov dword [ebp - 0x1c], 0xbf7d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
setge dl
add edx, 0x7ba6da08
je 0x1005d90d
cmp dword [ebp - 0x10], 0xd983a5c2
sbb eax, eax
neg eax
cmp eax, dword [ebp - 0x10]
jl 0x1005d90d
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
mov eax, dword [ebp - 0x20]
setl dl
xor ecx, ecx
cmp eax, edx
setge cl
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0xb4]
dec dword [eax]
lea ecx, [ebp - 0xcc]
call fcn.100144eb
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x11
je 0x1005d816
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 7
call fcn.100144eb
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xffffffef
jl 0x1005d7b5
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0xb4]
call fcn.100144eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.100144eb
mov eax, dword [esi + 4]
test eax, eax
jne 0x1005da3b
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push edi
mov dword [ebp - 0x34], eax
call fcn.1010b0cf
pop ecx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], ebx
push eax
push edi
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
call fcn.10065455
test edi, edi
mov ecx, ebx
mov edi, dword [ebp - 0x84]
jle 0x1005da20
mov eax, ecx
and eax, 0x80000001
jns 0x1005d9e6
dec eax
or eax, 0xfffffffe
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
add eax, ecx
add eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x34]
jmp 0x1005d9fb
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x24]
cmp word [edi + edx*2], bx
jne 0x1005d9f8
xor eax, eax
inc eax
mov word [edi + edx*2], ax
mov al, byte [edx + esi + 0x10]
mov edx, dword [ebp - 0x30]
mov byte [ecx + edx], al
inc ecx
mov eax, dword [ebp - 0x24]
cmp ecx, eax
jl 0x1005d9d8
jmp 0x1005da23
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
test edi, edi
je 0x1005da3e
push edi
call fcn.10120696
pop ecx
jmp 0x1005da3e
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret