Function at 0x100582d1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5b4
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
mov dword [ebp - 0x5b0], ebx
mov edi, 0x10007600
mov ecx, 0xc8
mov eax, dword [edi]
sub eax, 0x480
je 0x1005833c
dec eax
sub eax, 1
je 0x10058334
sub eax, 3
je 0x1005832c
dec eax
sub eax, 1
je 0x10058324
sub eax, 8
jne 0x10058350
lea eax, [esi + 0x7d4]
jmp 0x10058342
lea eax, [esi + 0x644]
jmp 0x10058342
lea eax, [esi + 0x4b4]
jmp 0x10058342
lea eax, [esi + 0x324]
jmp 0x10058342
lea eax, [esi + 0x194]
mov edx, ecx
lea ecx, [ebp - 0x3a0]
push eax
call fcn.1000b82d
xor eax, eax
mov word [ebp - 0x212], ax
lea eax, [ebp - 0x3a0]
push eax
push dword [edi]
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
add edi, 4
mov ecx, 0xc8
cmp edi, 0x10007614
jl 0x100582fd
push 0x63
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov ecx, edi
call fcn.1005aadb
xor ecx, ecx
cmp dword [esi + 0x988], ecx
je 0x1005849f
push 0xc
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x100583e3
xor ecx, ecx
push ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x988]
push ecx
push ecx
push eax
mov edx, dword [edx]
mov ecx, edi
call fcn.1005b1f3
mov eax, dword [esi + 0x988]
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push eax
push eax
push 0x14e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x988]
xor ecx, ecx
cmp dword [eax + 0x28], ecx
je 0x100585cc
push 0x490
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi + 0x988]
mov ebx, eax
mov ecx, ebx
mov edx, dword [edx + 0x28]
call fcn.1005c154
push dword [esi + 0x988]
mov ecx, dword [ebp - 0x5b0]
mov edx, ebx
push edi
call fcn.1005861f
xor eax, eax
push eax
push eax
push 0x1004
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x100585cc
push 0xfe
lea eax, [ebp - 0x208]
push eax
push 0x10ba
push dword [0x1008b1e4]
call dword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
push eax
push eax
push 0x1004
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x5a8]
push 0x104
push eax
call fcn.10010229
add esp, 0x10
lea eax, [ebp - 0x5a8]
push eax
push dword [ebp - 0x5b0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x100585cc
lea eax, [esi + 4]
mov dword [ebp - 0x5ac], 0x104
mov dword [ebp - 0x5b4], ecx
test eax, eax
je 0x100584cc
mov ecx, eax
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100584bd
sub ecx, edx
sar ecx, 1
test ecx, ecx
jne 0x100585b8
mov ecx, dword [esi]
lea eax, [ecx - 0x14c]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x100584ee
mov ebx, dword [ecx + 0x2a8]
test ebx, ebx
jne 0x100584f3
mov ebx, SysReAllocStringLen
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x10007478
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x10058525
lea eax, [ebp - 0x210]
mov edx, 0xc8
push eax
lea ecx, [esi + 4]
call fcn.1000b82d
lea eax, [ebp - 0x5ac]
mov dword [ebp - 0x5ac], 0x104
push eax
lea eax, [ebp - 0x210]
push eax
push 0x100074c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x10058582
mov ecx, SysReAllocStringLen
mov dword [ebp - 0x5ac], 0x104
cmp ebx, ecx
je 0x1005858a
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x100074c8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1005858a
lea eax, [ebp - 0x210]
jmp 0x100585be
lea eax, [ebp - 0x5ac]
mov dword [ebp - 0x5ac], 0x104
push eax
lea eax, [ebp - 0x210]
push eax
push 0x100074c8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
lea eax, [ebp - 0x210]
je 0x100585be
mov eax, dword [ebp - 0x5b4]
mov ecx, dword [esi]
mov edx, edi
push eax
lea eax, [esi + 4]
push eax
call fcn.1005ab80
mov ecx, dword [ebp - 0x5b0]
mov edx, edi
call fcn.10057f8a
xor eax, eax
push eax
push eax
push 0x130b
push 0x64
push dword [ebp - 0x5b0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x5b0]
mov edx, edi
push eax
push dword [esi + 0x988]
call fcn.100577a1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret