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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403e23
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x406018]
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 esi, ecx
mov dword [ebp - 0x12c], esi
call dword [sym.imp.mfc100.dll_Ordinal_9475]
mov eax, dword [esi + 0xc8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xc0], 1
cmp dword [eax - 0xc], 0
je 0x402153
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xc0]
cmp eax, 1
je 0x402181
cmp eax, 7
je 0x402181
cmp eax, 3
je 0x402181
cmp eax, 2
je 0x402181
cmp eax, 0xa
je 0x402181
push 1
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_3977]
jmp 0x40266b
lea ebx, [esi + 0xc4]
push 0x404b8c
mov ecx, ebx
call dword [sym.imp.mfc100.dll_Ordinal_1316]
push 0
push 0x404960
lea ecx, [esi + 0xb8]
call dword [sym.imp.mfc100.dll_Ordinal_4144]
cmp eax, 0xffffffff
jle 0x4021e8
mov edx, dword [esi + 0xb8]
mov ecx, dword [edx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea eax, [ebp - 0x124]
push eax
lea ecx, [esi + 0xb8]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x128]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x11c]
push ecx
push 0x104
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x11c]
push edx
mov dword [ebp - 0x130], eax
mov byte [ebp + eax - 0x11c], 0
lea eax, [ebp - 0x128]
push str._stempcompfile.tdl
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0xc
lea ecx, [ebp - 0x144]
call dword [sym.imp.mfc100.dll_Ordinal_869]
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100.dll_Ordinal_421]
push 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x128]
push 0
push ecx
lea ecx, [ebp - 0x168]
call dword [sym.imp.mfc100.dll_Ordinal_10906]
test eax, eax
je 0x4022fd
push 0
push 0x1000
push 1
lea edx, [ebp - 0x168]
mov bl, 4
push edx
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_325]
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc100.dll_Ordinal_12014]
lea ecx, [ebp - 0x1c0]
call dword [sym.imp.mfc100.dll_Ordinal_2514]
lea ecx, [ebp - 0x168]
call dword [sym.imp.mfc100.dll_Ordinal_2524]
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_909]
mov dword [ebp - 4], 3
jmp 0x4022fd
xor edi, edi
cmp dword [ebp - 0x13c], edi
jle 0x402511
mov bl, 8
lea ecx, [ecx]
lea ecx, [ebp - 0x1dc]
call dword [sym.imp.mfc100.dll_Ordinal_423]
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], bl
test edi, edi
js 0x4024d1
cmp edi, dword [ebp - 0x13c]
jge 0x4024d1
mov ecx, dword [ebp - 0x140]
push 0
lea ecx, [ecx + edi*4]
push 0x404960
call dword [sym.imp.mfc100.dll_Ordinal_4144]
cmp eax, 0xffffffff
jle 0x4023b8
cmp edi, dword [ebp - 0x13c]
jge 0x4024d1
mov edx, dword [ebp - 0x140]
push eax
lea eax, [ebp - 0x154]
lea ecx, [edx + edi*4]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_7487]
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
jmp 0x4023da
cmp edi, dword [ebp - 0x13c]
jge 0x4024d1
mov ecx, dword [ebp - 0x140]
lea eax, [ecx + edi*4]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov edx, dword [ebp - 0x124]
push 0
push edx
lea ecx, [ebp - 0x1dc]
call dword [sym.imp.mfc100.dll_Ordinal_4188]
test eax, eax
je 0x402404
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402414
push 1
push edi
lea ecx, [ebp - 0x144]
call dword [sym.imp.mfc100.dll_Ordinal_11513]
dec edi
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc100.dll_Ordinal_979]
mov eax, dword [ebp - 0x13c]
inc edi
cmp edi, eax
jl 0x402310
test eax, eax
jle 0x402511
mov ecx, dword [ebp - 0x128]
push 0
push 0x1001
push ecx
lea ecx, [ebp - 0x168]
call dword [sym.imp.mfc100.dll_Ordinal_10906]
test eax, eax
je 0x40251e
push 0
push 0x1000
push 0
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc100.dll_Ordinal_325]
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc100.dll_Ordinal_12014]
lea ecx, [ebp - 0x1c0]
call dword [sym.imp.mfc100.dll_Ordinal_2514]
lea ecx, [ebp - 0x168]
call dword [sym.imp.mfc100.dll_Ordinal_2524]
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc100.dll_Ordinal_909]
mov dword [ebp - 4], 3
jmp 0x40251e
call dword [sym.imp.mfc100.dll_Ordinal_2061]
mov ecx, dword [ebp - 0x174]
call dword [sym.imp.mfc100.dll_Ordinal_3406]
mov dword [ebp - 4], 3
mov eax, 0x402509
ret
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xd
mov eax, dword [esi + 0xc0]
dec eax
cmp eax, 9
ja case.0x40253a.1
jmp dword [eax*4 + 0x40268c]
push str.AESoftwareAlbumPersonalRecord
jmp 0x402562
push str.AESoftwareAlbumExpertRecord
jmp 0x402562
push str.AESoftwareWordArtRecord
jmp 0x402562
push str.AESoftwareCalendarRecord
jmp 0x402562
push str.AESoftwareAlbumEditorRecord
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc100.dll_Ordinal_1316]
xor eax, eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x120]
lea ebx, [ebp - 0x150]
call fcn.00402c20
mov edi, dword [ebp - 0x150]
test eax, eax
jne 0x40261e
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push str.UPDATED
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40261e
lea ecx, [ebp - 0x11c]
push ecx
mov dword [ebp - 0x130], 0x104
mov byte [ebp - 0x18], al
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
test eax, eax
je 0x40261e
push 4
push 0x40497c
push 0x40498c
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_7871]
cmp eax, 6
jne 0x40261e
lea edx, [esi + 0xcc]
push edx
push 0
push esi
push 0x401b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xbc], eax
jmp 0x402628
push 1
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_3977]
test edi, edi
je 0x402633
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100.dll_Ordinal_977]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_1267]
lea ecx, [ebp - 0x128]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, 1
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.00403048
mov esp, ebp
pop ebp
ret