Function at 0x4ec150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareROWLIBERATION
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 4
push eax
push 0
push 0
push str.Vertical
push dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
call edi
mov ecx, 1
test eax, eax
jne 0x4ec1eb
mov eax, dword [ebp - 4]
cmp cx, ax
jne 0x4ec1e0
mov dword [esi + 0x5c], ecx
shr eax, 0x10
cmp cx, ax
jne 0x4ec1eb
mov dword [esi + 0x60], ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.Width
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4ec21a
mov dword [ebp - 8], 0x556
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.Height
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4ec23b
mov dword [ebp - 0xc], 0x300
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.DlgControl
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4ec269
mov eax, dword [ebp - 8]
add eax, 0xffffff0b
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffffffd7
jmp 0x4ec292
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
movzx eax, cx
shr ecx, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
cmp eax, ebx
jge 0x4ec286
cmp ecx, edx
jl 0x4ec29c
lea eax, [ebx - 0xf5]
mov dword [esi + 0x14], eax
lea eax, [edx - 0x29]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.SiegeTime
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4ec2c0
mov eax, dword [ebp - 8]
add eax, 0xffffff00
jmp 0x4ec2e1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, cx
shr ecx, 0x10
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ecx
cmp eax, edx
jge 0x4ec2db
cmp ecx, dword [ebp - 0xc]
jl 0x4ec2eb
lea eax, [edx - 0x100]
mov dword [esi + 0x50], 0x82
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.QuickSlot
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4ec318
mov eax, dword [ebp - 8]
add eax, 0xfffffdcd
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffffffd7
jmp 0x4ec341
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
movzx eax, cx
shr ecx, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
cmp eax, ebx
jge 0x4ec335
cmp ecx, edx
jl 0x4ec34b
lea eax, [ebx - 0x233]
mov dword [esi + 0x1c], eax
lea eax, [edx - 0x29]
mov dword [esi + 0x60], 0
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.Status
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4ec37e
mov ecx, dword [ebp - 4]
movzx eax, cx
shr ecx, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
cmp eax, dword [ebp - 8]
jge 0x4ec37e
cmp ecx, dword [ebp - 0xc]
jl 0x4ec38c
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x707878
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4ec3bc
mov eax, dword [ebp - 8]
mov ebx, 1
add eax, 0xffffff74
mov dword [esi + 0x40], 1
jmp 0x4ec414
mov ecx, dword [ebp - 4]
movzx eax, cx
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
shr ecx, 0x10
push eax
push 0
push 0
push str.MapType
push dword [ebp - 0x10]
mov dword [esi + 0x3c], ecx
call edi
mov ecx, dword [ebp - 4]
test eax, eax
mov edx, dword [esi + 0x38]
mov ebx, 1
cmovne ecx, ebx
mov dword [esi + 0x40], ecx
mov ecx, dword [ebp - 8]
test edx, edx
js 0x4ec40b
mov eax, dword [esi + 0x3c]
test eax, eax
js 0x4ec40b
cmp edx, ecx
jge 0x4ec40b
cmp eax, dword [ebp - 0xc]
jl 0x4ec41e
lea eax, [ecx - 0x8c]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.Enchant
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4ec451
mov ecx, dword [ebp - 4]
movzx eax, cx
shr ecx, 0x10
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
cmp eax, dword [ebp - 8]
jge 0x4ec451
cmp ecx, dword [ebp - 0xc]
jl 0x4ec45f
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0xf0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.ChatDlgType
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 4]
test eax, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
cmovne ecx, ebx
push eax
push 0
push 0
push str.Chat
push dword [ebp - 0x10]
mov dword [esi + 0x54], ecx
call edi
test eax, eax
je 0x4ec4f2
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4ec4b9
mov eax, dword [ebp - 8]
add eax, 0xfffffec1
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffffff5d
jmp 0x4ec544
cmp eax, 1
jne 0x4ec4d3
mov eax, dword [ebp - 8]
add eax, 0xfffffdcd
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffffff5d
jmp 0x4ec544
cmp eax, 2
je 0x4ec4a1
cmp eax, 3
jne 0x4ec547
mov eax, dword [ebp - 8]
add eax, 0xfffffdcd
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0xc]
add eax, 0xffffff5d
jmp 0x4ec544
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, bx
shr ebx, 0x10
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ebx
cmp eax, edx
jge 0x4ec50f
cmp ebx, ecx
jl 0x4ec547
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4ec51e
lea eax, [edx - 0x13f]
jmp 0x4ec53b
cmp eax, 1
je 0x4ec535
cmp eax, 2
jne 0x4ec530
lea eax, [edx - 0x13f]
jmp 0x4ec53b
cmp eax, 3
jne 0x4ec547
lea eax, [edx - 0x233]
mov dword [esi + 0x44], eax
lea eax, [ecx - 0xa3]
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.StatusDlgExLv
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 4]
lea ebx, [esi + 0x58]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edx
push edx
push str.VisibleFlag
push dword [ebp - 0x10]
cmovne ecx, edx
mov dword [esi + 0x2c], ecx
call edi
test eax, eax
je 0x4ec588
mov dword [ebx], 0x1f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc]
mov eax, edx
mov edi, dword [ebp - 8]
shr eax, 0x1f
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x700e30]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm1, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x700e30]
mov eax, edx
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x7078bc]
subss xmm1, xmm0
mulss xmm1, dword [0x70174c]
cvttss2si ecx, xmm1
sub eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [esi + 0x174], eax
cmp ecx, 0x3c
jge 0x4ec606
mov ecx, 0x3c
lea eax, [edx - 0x3c]
mov dword [ebp - 0x1c], ecx
mov dword [esi + 0x174], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ecx
mov ecx, dword [0x76a120]
push edi
call fcn.00493830
mov ecx, dword [ebp - 0x18]
push 0xff000000
call fcn.0048b3d0
xor ebx, ebx
xor edi, edi
nop
mov ecx, dword [ebp - 0x18]
add ebx, 0x10000000
push ebx
push 1
push dword [ebp - 8]
push edi
push 0
call fcn.0048b4e0
inc edi
cmp edi, 0xf
jl 0x4ec630
call fcn.00493160
mov ecx, eax
call fcn.004930e0
push dword [ebp - 0x18]
mov ecx, eax
mov dword [esi + 0x16c], eax
call fcn.00491160
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4ec67d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x18], 0
mov ecx, dword [0x76a120]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.00493830
mov ecx, dword [ebp - 0x18]
push 0xff000000
call fcn.0048b3d0
xor ebx, ebx
xor edi, edi
mov ecx, dword [ebp - 0x18]
add ebx, 0x10000000
push ebx
push 1
push dword [ebp - 8]
push edi
push 0
call fcn.0048b4e0
inc edi
cmp edi, 0xf
jl 0x4ec6a3
pop ebx
call fcn.00493160
mov ecx, eax
call fcn.004930e0
push dword [ebp - 0x18]
mov ecx, eax
mov dword [esi + 0x170], eax
call fcn.00491160
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
test ecx, ecx
je 0x4ec6ec
mov eax, dword [ecx]
push 1
call dword [eax]
mov esp, ebp
pop ebp
ret