Function at 0x477f5a
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4e0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x694
mov dword [ebp - 0x650], 0x3ad7948a
lea ecx, [ebp - 0x640]
call fcn.00402dc0
mov dword [ebp - 4], 0
mov dword [ebp - 0x63c], 0
jmp 0x477faf
mov eax, dword [ebp - 0x63c]
add eax, 1
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 7
jge 0x47801a
mov ecx, dword [ebp - 0x650]
push ecx
lea ecx, [ebp - 0x654]
call fcn.00479300
push str._Y___m___d
lea edx, [ebp - 0x658]
push edx
lea ecx, [ebp - 0x654]
call fcn.004a0746
mov dword [ebp - 0x69c], eax
mov eax, dword [ebp - 0x69c]
mov dword [ebp - 0x6a0], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6a0]
push ecx
lea ecx, [ebp - 0x640]
call fcn.004a7084
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x658]
call fcn.004a6f4b
jmp 0x477fa0
lea edx, [ebp - 0x64c]
push edx
push str.SoftwareFounderEbook_reader_register
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x47805c
mov dword [ebp - 0x65c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x65c]
jmp 0x4784ba
mov dword [ebp - 0x648], 0x400
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x638], 0
cmp dword [ebp + 8], 0
je 0x4780b6
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x528]
push ecx
lea edx, [ebp - 0x52c]
push edx
push 0
push 0x5048d4
mov eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x638], eax
jmp 0x4780ea
lea ecx, [ebp - 0x648]
push ecx
lea edx, [ebp - 0x528]
push edx
lea eax, [ebp - 0x52c]
push eax
push 0
push str.CodeExt
mov ecx, dword [ebp - 0x64c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x638], eax
mov edx, dword [ebp - 0x64c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x638], 0
jne 0x478127
mov dword [ebp - 0x660], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x660]
jmp 0x4784ba
cmp dword [ebp - 0x648], 0x1d
ja 0x478157
mov dword [ebp - 0x664], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x664]
jmp 0x4784ba
push 0x104
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x478194
mov dword [ebp - 0x668], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x668]
jmp 0x4784ba
lea ecx, [ebp - 0x128]
call fcn.00411d80
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x630]
push edx
call fcn.004a8f3a
test eax, eax
jne 0x4781dd
mov dword [ebp - 0x66c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x66c]
jmp 0x4784ba
mov eax, dword [ebp - 0x648]
push eax
call fcn.004a7fba
add esp, 4
mov dword [ebp - 0x670], eax
mov ecx, dword [ebp - 0x670]
mov dword [ebp - 0x10], ecx
push 0x18
push 0x5047ac
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x648]
push eax
lea ecx, [ebp - 0x528]
push ecx
push 0x18
push 0x5047ac
push 1
push 0
call fcn.00473650
add esp, 0x24
push 0x18
push 0x5047ac
mov edx, dword [ebp - 0x10]
push edx
call fcn.00490170
add esp, 0xc
test eax, eax
je 0x47827d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x674], eax
mov ecx, dword [ebp - 0x674]
push ecx
call fcn.004a7fe3
add esp, 4
mov dword [ebp - 0x678], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x678]
jmp 0x4784ba
cmp dword [ebp - 0x648], 0x1c
jb 0x4782a2
push 4
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x18
push eax
call fcn.00490170
add esp, 0xc
test eax, eax
je 0x4782e1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x67c], ecx
mov edx, dword [ebp - 0x67c]
push edx
call fcn.004a7fe3
add esp, 4
mov dword [ebp - 0x680], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x680]
jmp 0x4784ba
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 0x1c]
mov byte [ebp - 0x634], cl
cmp dword [ebp + 0xc], 0
je 0x478306
mov edx, dword [ebp - 0x634]
and edx, 0xff
mov eax, dword [ebp + 0x10]
cmp dword [eax], edx
jl 0x478337
mov ecx, dword [ebp - 0x634]
and ecx, 0xff
mov edx, dword [ebp - 0x648]
sub edx, 0x1d
cmp ecx, edx
ja 0x478337
mov eax, dword [ebp - 0x634]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx]
jl 0x478376
cmp dword [ebp + 0xc], 0
je 0x478376
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x684], edx
mov eax, dword [ebp - 0x684]
push eax
call fcn.004a7fe3
add esp, 4
mov dword [ebp - 0x688], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x688]
jmp 0x4784ba
cmp dword [ebp + 0xc], 0
je 0x4783b0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00490070
add esp, 0xc
mov ecx, dword [ebp - 0x634]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x1d
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0048f2e0
add esp, 0xc
mov ecx, dword [ebp - 0x634]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
mov al, byte [edx + ecx + 0x1d]
mov byte [ebp - 0x644], al
mov ecx, dword [ebp - 0x644]
and ecx, 0xff
mov edx, dword [ebp - 0x648]
sub edx, 0x1e
mov eax, dword [ebp + 0x10]
sub edx, dword [eax]
cmp ecx, edx
jne 0x47840a
mov ecx, dword [ebp - 0x644]
and ecx, 0xff
mov edx, dword [ebp + 0x18]
cmp ecx, dword [edx]
jle 0x478446
cmp dword [ebp + 0x14], 0
je 0x478446
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68c], eax
mov ecx, dword [ebp - 0x68c]
push ecx
call fcn.004a7fe3
add esp, 4
mov dword [ebp - 0x690], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x690]
jmp 0x4784ba
mov edx, dword [ebp - 0x644]
and edx, 0xff
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x478480
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x648]
sub ecx, dword [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0048f2e0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x694], ecx
mov edx, dword [ebp - 0x694]
push edx
call fcn.004a7fe3
add esp, 4
mov dword [ebp - 0x698], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004a6f4b
mov eax, dword [ebp - 0x698]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret