Function at 0x435a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1761
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x820], ebx
test ebx, ebx
je 0x435d18
push 0x200
lea eax, [ebp - 0x410]
mov dword [ebp - 0x814], 0x200
push eax
call fcn.00402640
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4d76d8
call edi
test eax, eax
jne 0x435aa8
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x4d76d8
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.0046a94a
add esp, 8
mov esi, eax
lea eax, [ebp - 0x410]
push eax
call edi
lea ecx, [ebp + eax*2 - 0x412]
cmp esi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x435af5
push 0x4b47d8
lea eax, [ebp - 0x410]
push eax
call esi
push str.RecvErrorWindowDlg
lea eax, [ebp - 0x410]
push eax
call esi
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0
push eax
push 0x20019
xor esi, esi
lea eax, [ebp - 0x410]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435d18
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
push esi
push str.COLUMNWIDTH
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x818]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x435d18
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0
push eax
push 1
push ecx
mov esi, esp
mov dword [ebp - 0x81c], esi
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x435d36
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
shr eax, 0x10
mov dword [ebp - 0x818], eax
test eax, eax
jne 0x435bdd
lea eax, [ebp - 0x810]
mov ecx, esi
movzx eax, ax
push eax
call fcn.0041cd60
jmp 0x435c04
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435be6
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041d170
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004361d0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x814], eax
call edi
cmp esi, eax
jne 0x435d18
push 1
call edi
cmp dword [ebp - 0x814], eax
jne 0x435d18
lea ecx, [ebp - 0x814]
call fcn.0041d370
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [ebx], 0xffffffff
je 0x435cf3
mov esi, ebx
push dword [esi + 4]
push ecx
mov ebx, esp
mov dword [ebp - 0x81c], ebx
call fcn.0043a11f
test eax, eax
je 0x435d36
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], 0
jne 0x435ca8
lea eax, [ebp - 0x810]
mov ecx, ebx
movzx eax, ax
push eax
call fcn.0041cd60
jmp 0x435ccf
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435cb1
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0041d170
mov byte [ebp - 4], 1
call fcn.00435d50
cmp eax, 0xffffffff
je 0x435cdf
mov dword [esi], eax
mov eax, dword [ebp - 0x820]
inc edi
cmp dword [eax + edi*8], 0xffffffff
lea esi, [eax + edi*8]
jne 0x435c63
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435d18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0041d300
int3