Function at 0x407e56
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x3a0
lea ebp, [esp - 4]
mov eax, dword [0x4dbc40]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push 0x48
mov eax, 0x4aa1a5
call fcn.00490adb
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x3b0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x3b4]
mov esi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4f4a0c]
mov ecx, 0x4f4a0c
mov dword [ebp - 0x1c], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x208
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push edi
push eax
call fcn.0048e0e0
push 0x110
lea eax, [ebp + 4]
push edi
push eax
mov dword [ebp], 0x114
call fcn.0048e0e0
add esp, 0x18
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, 0x105
test eax, eax
je 0x407f3e
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
lea edi, [ebp + 0x194]
push dword [ebp + 4]
push 0x4c4538
call fcn.0040243c
mov eax, edi
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x407f20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
xor eax, eax
push 0x7e
push eax
mov word [ebp + 0x114], ax
lea eax, [ebp + 0x116]
push eax
call fcn.0048e0e0
lea eax, [ebp + 0x114]
push 0x3f
push eax
call fcn.00420908
lea eax, [ebp + 0x114]
push eax
push str.iev_s_r_n
mov ecx, ebx
lea edi, [ebp + 0x194]
call fcn.0040243c
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x407f85
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x4b8084
push str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
push 0x80000000
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x2c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40802c
push 0x3f
pop ebx
lea esi, [ebp + 0x114]
lea edi, [ebp + 0x194]
call fcn.0041dd5a
mov eax, esi
push eax
push str.fv_s_r_n
mov ecx, 0x105
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408006
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
mov esi, dword [ebp - 0x1c]
mov ebx, 0x105
push 8
push str.appcdln
lea eax, [ebp - 0x10]
call fcn.00405cb7
lea eax, [esi + 0x149e]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405c9d
push 2
push 0x4c460c
lea eax, [ebp - 0x10]
call fcn.00405cb7
call fcn.0040b480
push eax
push str.appv_s_r_n
mov ecx, ebx
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408079
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
and dword [ebp - 0x54], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
push 0x1c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push dword [esi + 0xc]
push dword [esi + 0x31c]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x50]
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x20], eax
je 0x40818f
mov eax, dword [0x4f7464]
test eax, eax
je 0x40818f
push 0x104
lea ecx, [ebp + 0x194]
push ecx
push dword [ebp - 0x50]
push dword [esi + 0x31c]
call eax
test eax, eax
je 0x40818f
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 9
mov esi, eax
push str.excptmod
lea eax, [ebp - 0x10]
call fcn.00405cb7
mov eax, esi
test esi, esi
jne 0x408123
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405c9d
push 2
push 0x4c460c
lea eax, [ebp - 0x10]
call fcn.00405cb7
push 0x3f
pop ebx
lea esi, [ebp + 0x114]
lea edi, [ebp + 0x194]
call fcn.0041dd5a
mov eax, esi
push eax
push str.excptmodv_s_r_n
mov ecx, 0x105
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408169
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
mov esi, dword [ebp - 0x1c]
mov ebx, 0x105
push dword [esi]
mov ecx, ebx
push str.excptcode_08x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4081aa
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [ebp - 0x20]
mov ecx, ebx
push str.excptaddr_08x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4081e4
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x324]
mov ecx, ebx
push str.excptpid_08x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408221
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x328]
mov ecx, ebx
push str.excpttid_08x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40825e
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x32c]
mov ecx, ebx
push str.os64_x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40829b
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x330]
mov ecx, ebx
push str.procType_x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4082d8
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x334]
mov ecx, ebx
push str.browserMode_x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408315
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x33c]
mov ecx, ebx
push str.excptCnt_x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408352
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x340]
mov ecx, ebx
push str.threadStatus_x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40838f
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x338]
mov ecx, ebx
push str.bExit_x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4083cc
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [esi + 0x350]
mov ecx, ebx
push str.tckExcpt_x_r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408409
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
lea eax, [esi + 0x354]
push eax
push str.threadErr_s_r_n
mov ecx, ebx
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408447
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
lea eax, [esi + 0x24e8]
push eax
push str.cid_s_r_n
mov ecx, ebx
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408485
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
lea eax, [esi + 0x454]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404b9b
push 0x4c47e0
push 0x4c47e8
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00405b52
push 0x4c47ec
push 0x4c47f4
lea eax, [ebp - 0x14]
push eax
call fcn.00405b52
push 9
push 0x4c47f8
lea eax, [ebp - 0x10]
call fcn.00405cb7
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push 2
mov edi, 0x4c460c
push edi
lea eax, [ebp - 0x10]
call fcn.00405cb7
push 9
push str.excptMD5
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.00405c9d
push 2
push edi
lea eax, [ebp - 0x10]
call fcn.00405cb7
push 0xa
push str.excptwalk
lea eax, [ebp - 0x10]
call fcn.00405cb7
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
call fcn.00405c9d
push 2
push edi
lea eax, [ebp - 0x10]
call fcn.00405cb7
mov eax, dword [esi + 0x348]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x34c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00489f59
pop ecx
test eax, eax
je 0x4085c8
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
lea edi, [ebp + 0x194]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
push str.excptTm_d__d__d__d:_d:_d_r_n
mov ecx, ebx
call fcn.0040243c
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4085aa
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x10]
call fcn.00405cb7
push 0
lea eax, [ebp - 0x10]
call fcn.004095eb
call fcn.004077b8
test eax, eax
je 0x408684
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push dword [ebp - 0x18]
mov ecx, 0x104
push str.__s__r_n
lea edi, [ebp + 0x194]
call fcn.0040243c
pop ecx
pop ecx
mov eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call fcn.00409487
mov edi, dword [ebp - 0x10]
mov esi, dword [edi - 0xc]
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487d50
mov ebx, eax
lea eax, [esi + esi]
push eax
push 0
push ebx
call fcn.0048e0e0
add esp, 0x10
push edi
mov ecx, esi
mov edx, ebx
call fcn.004025a1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404bfa
lea eax, [edi - 0x10]
call fcn.00404bfa
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.00488e60
add ebp, 0x3a4
leave
ret
mov edi, dword [ebp - 0x10]
xor ebx, ebx
jmp 0x40864c