Function at 0x40139d
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x405550
push 0xffffffffffffffff
push 0x497d39
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov eax, dword [esp + 0x160]
push ecx
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4a310a
mov dword [esp + 0x34], eax
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..FileToEmail.cpp
mov dword [esp + 0x164], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.GetCueProgDir
mov byte [esp + 0x168], 1
call fcn.004012d5
or ebx, 0xffffffff
lea ecx, [esp + 0x44]
mov dword [esp + 0x164], ebx
call fcn.0040130c
mov dword [esp + 0x158], 2
mov byte [esp + 0x17], 1
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40561b
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push str.ERROR
push str.CueProgDirReg
push str.Main
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov byte [esp + 0x168], 3
call fcn.00419143
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x158], 4
je 0x4056ac
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40569a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40569a
push eax
call fcn.00401140
mov ebp, eax
add esp, 4
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x405691
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x4056ac
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401032
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x158], 3
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.ERROR
push ebp
call fcn.00451abe
add esp, 8
test eax, eax
sete al
test al, al
je 0x4057bc
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405708
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push str.CueProgDirReg
push str.Main
lea ecx, [esp + 0x24]
push str.__s___s_not_found
push ecx
mov byte [esp + 0x168], 5
call fcn.0040105f
mov esi, dword [esp + 0x2c]
add esp, 0x10
push ebx
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push esi
call fcn.00401140
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x40]
mov dword [edi], eax
call fcn.00401514
mov byte [esp + 0x158], 3
lea edx, [esi + 0xc]
mov eax, ebx
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405782
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x158], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x158], ebx
call fcn.004013f2
xor al, al
jmp 0x405a80
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x405aaa
cmp eax, ecx
jg 0x405aaa
mov al, byte [eax + ebp]
cmp al, 0x5c
jne 0x40582a
mov ebp, ecx
add ebp, 0xffffffff
push ebp
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.004014fb
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 6
call fcn.00401339
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x158], 3
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
push 0x5c
push ebp
call fcn.00450c71
add esp, 8
test eax, eax
jne 0x40583d
mov esi, ebx
jmp 0x405841
sub eax, ebp
mov esi, eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.004014fb
mov eax, dword [ebp - 0xc]
sub eax, esi
sub eax, 1
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 7
call fcn.00401168
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push 1
push 0
push esi
mov bl, 8
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x16c], bl
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405903
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
push eax
mov eax, dword [esp + 0x38]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405994
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4058e3
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
mov byte [esp + 0x15c], 9
push str.Failed_to_read__s
jmp 0x40593b
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40591d
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
mov byte [esp + 0x15c], 0xa
push str.Failed_to_open__s
lea ecx, [esp + 0x24]
push ecx
call fcn.0040105f
mov esi, dword [esp + 0x28]
add esp, 0xc
push 0xffffffffffffffff
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push esi
call fcn.00401140
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x40]
mov dword [edi], eax
call fcn.00401514
or eax, 0xffffffff
lea edx, [esi + 0xc]
mov byte [esp + 0x158], bl
mov byte [esp + 0x17], 0
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405994
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [esp + 0x17]
test bl, bl
je 0x4059f6
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4059b0
mov esi, dword [esp + 0x2c]
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00401032
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
test eax, eax
jl 0x405aaa
cmp eax, edx
jg 0x405aaa
cmp byte [ecx + eax], 0x5c
je 0x4059f6
push 0x4a33c8
mov ecx, esi
call fcn.0040126c
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x158], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x158], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x158], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x158], 0xffffffff
call fcn.004013f2
mov al, bl
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0045162d
add esp, 0x148
ret 4
push 0x80070057
call fcn.004013ed
int3