Function at 0x4c4020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d18e
mov eax, dword fs:[0]
push eax
sub esp, 0x8d4
mov eax, dword [0x72400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8dc], ecx
mov dword [ebp - 0x8d8], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x8e0], eax
mov dword [eax + 0x10], 0
jb 0x4c4078
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov dword [ecx], edx
mov dword [ebp - 0x8d4], edx
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8cc], edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x830]
push 0x24
xor eax, eax
mov dword [ebp - 0x81c], 7
push str.SOFTWAREMozillaMozilla_Thunderbird
mov dword [ebp - 0x820], edx
mov word [ebp - 0x830], ax
call fcn.0040f5c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x830]
cmp dword [ebp - 0x81c], 8
push ecx
cmovae eax, dword [ebp - 0x830]
push eax
push ecx
lea ecx, [ebp - 0x8d4]
call fcn.00414e50
test eax, eax
je 0x4c4138
mov eax, dword [ebp - 0x81c]
cmp eax, 8
jb 0x4c4107
inc eax
lea ecx, [ebp - 0x830]
push eax
push dword [ebp - 0x830]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
mov eax, dword [ebp - 0x8d4]
mov dword [ebp - 0x820], 0
test eax, eax
je 0x4c41ff
push eax
jmp 0x4c41f9
push 0x802
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004e7b30
mov edi, dword [ebp - 0x8d4]
lea eax, [ebp - 0x8c4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
mov dword [ebp - 0x8c4], 0x800
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x8c8]
push eax
push 0
push str.CurrentVersion
push edi
call esi
test eax, eax
jne 0x4c41b9
mov eax, dword [ebp - 0x8c8]
cmp eax, 1
je 0x4c419e
cmp eax, 2
jne 0x4c41b9
mov eax, dword [ebp - 0x8c4]
test eax, eax
je 0x4c421f
test al, 1
jne 0x4c41b9
shr eax, 1
cmp word [ebp + eax*2 - 0x81a], 0
je 0x4c4228
mov eax, dword [ebp - 0x81c]
cmp eax, 8
jb 0x4c41d7
inc eax
lea ecx, [ebp - 0x830]
push eax
push dword [ebp - 0x830]
call fcn.004120a0
xor eax, eax
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], ax
test edi, edi
je 0x4c41ff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ce564
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x848]
call fcn.0040f910
mov byte [ebp - 4], 4
cmp dword [ebp - 0x838], 0
jne 0x4c425f
lea ecx, [ebp - 0x848]
call fcn.0040f850
lea ecx, [ebp - 0x830]
call fcn.0040f850
jmp 0x4c41f4
push str.SOFTWAREMozillaMozilla_Thunderbird
lea ecx, [ebp - 0x8c0]
call fcn.0040f910
push 0x70fec0
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x890]
call fcn.0041c1a0
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x878]
call fcn.0041c150
push str.Main
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x860]
call fcn.0041c1a0
add esp, 0xc
lea ecx, [ebp - 0x878]
call fcn.0040f850
lea ecx, [ebp - 0x890]
call fcn.0040f850
lea ecx, [ebp - 0x8c0]
call fcn.0040f850
mov dword [ebp - 0x884], 0
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x860]
cmp dword [ebp - 0x84c], 8
push ecx
cmovae eax, dword [ebp - 0x860]
push eax
push ecx
lea ecx, [ebp - 0x884]
call fcn.00414e50
test eax, eax
je 0x4c4363
mov eax, dword [ebp - 0x884]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4c4332
push eax
call esi
lea ecx, [ebp - 0x860]
call fcn.0040f850
lea ecx, [ebp - 0x848]
call fcn.0040f850
lea ecx, [ebp - 0x830]
call fcn.0040f850
test edi, edi
je 0x4c41ff
push edi
call esi
jmp 0x4c41ff
mov ebx, dword [ebp - 0x884]
lea eax, [ebp - 0x8c4]
push eax
lea eax, [ebp - 0x818]
mov dword [ebp - 0x8c4], 0x800
push eax
lea eax, [ebp - 0x8c8]
push eax
push 0
push str.PathToExe
push ebx
call esi
test eax, eax
jne 0x4c4423
mov eax, dword [ebp - 0x8c8]
cmp eax, 1
je 0x4c43aa
cmp eax, 2
jne 0x4c4423
mov eax, dword [ebp - 0x8c4]
test eax, eax
je 0x4c43c7
test al, 1
jne 0x4c4423
shr eax, 1
cmp word [ebp + eax*2 - 0x81a], 0
je 0x4c43d0
jmp 0x4c4423
xor eax, eax
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.0040f910
push 0
push 0x80
push 3
push 0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x8a8]
cmp dword [ebp - 0x894], 8
push 3
cmovae eax, dword [ebp - 0x8a8]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4c4437
lea ecx, [ebp - 0x8a8]
call fcn.0040f850
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4c4332
push ebx
jmp 0x4c4330
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push 0x71082c
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 0xe
call fcn.00410650
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4c4418
xor eax, eax
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x4c44c2
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x848]
cmovae ecx, dword [ebp - 0x848]
push eax
push ecx
lea ecx, [ebp - 0x878]
call fcn.004122c0
cmp dword [ebp - 0x864], 8
mov esi, dword [ebp - 0x878]
jae 0x4c44c8
lea esi, [ebp - 0x878]
call fcn.004ec905
push 0xa
mov dword [eax], 0
lea eax, [ebp - 0x8c8]
push eax
push esi
call fcn.004ec769
add esp, 0xc
mov dword [ebp - 0x8c4], eax
cmp esi, dword [ebp - 0x8c8]
jne 0x4c44fd
push str.invalid_stoul_argument
call fcn.004cf675
call fcn.004ec905
cmp dword [eax], 0x22
jne 0x4c4578
push str.stoul_argument_out_of_range
call fcn.004cf6b5
mov eax, dword [ebp - 0x8d8]
mov dword [eax], 0
mov eax, 0x4c4523
ret
mov eax, dword [ebp - 0x8dc]
mov ecx, dword [ebp - 0x8c4]
mov dword [eax], ecx
lea ecx, [ebp - 0x878]
call fcn.0040f850
mov ecx, dword [ebp - 0x8e0]
lea edx, [ebp - 0x8a8]
call fcn.00418610
lea ecx, [ebp - 0x8a8]
call fcn.0040f850
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4c45ba
push ebx
call esi
lea ecx, [ebp - 0x860]
call fcn.0040f850
lea ecx, [ebp - 0x848]
call fcn.0040f850
lea ecx, [ebp - 0x830]
call fcn.0040f850
test edi, edi
je 0x4c45e2
push edi
call esi
mov al, 1
jmp 0x4c4201