Function at 0x4024f0
Capabilities:
Get file attributes
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ccaa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 5
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x154]
mov byte [esp + 0x14c], 6
push eax
mov ebx, eax
call sub.MFC42.DLL_HashKey
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
xor edx, edx
div dword [0x4136bc]
mov eax, dword [0x4136b8]
test eax, eax
je 0x4025d6
mov edi, dword [eax + edx*4]
test edi, edi
je 0x4025d6
mov eax, dword [edi + 8]
push ebx
push eax
call ebp
add esp, 8
test eax, eax
je 0x4025c5
mov edi, dword [edi]
test edi, edi
jne 0x4025af
jmp 0x4025d6
test edi, edi
je 0x4025d6
add edi, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.00402220
mov eax, dword [esp + 0x10]
push 0x413068
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4027f3
mov ecx, esi
call fcn.00403a30
test eax, eax
je 0x4027f3
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 7
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::operator_1
lea ebx, [esi + 0xc]
lea edx, [esp + 0x38]
push 0
push edx
mov ecx, ebx
call fcn.00403540
push str..sys
lea ecx, [esp + 0x3c]
mov byte [esp + 0x150], 8
call sub.MFC42.DLL_CString::Find_2
add eax, 4
lea ecx, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x150], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040bf4a
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x3c]
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x413650]
xor edi, edi
cmp eax, 1
mov byte [esp + 0x14c], 0xa
jne 0x4026ca
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
call fcn.0040b220
jmp 0x4026d4
mov ecx, dword [esi + 0x48]
push 0
call fcn.0040b2b0
mov eax, dword [esi + 0x14]
xor ebp, ebp
test eax, eax
jle 0x402717
lea ecx, [esp + 0x30]
push ebp
push ecx
mov ecx, ebx
call fcn.00403540
mov edx, dword [esp + 0x30]
push 0x41365c
lea eax, [esp + edi + 0x44]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x30]
lea edi, [edi + eax + 1]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x14]
inc ebp
cmp ebp, eax
jl 0x4026dd
mov eax, dword [esi + 4]
lea ecx, [esp + 0x34]
push ecx
push 0x20006
inc edi
push 0
push eax
push 0x80000002
mov byte [esp + edi + 0x54], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402756
mov esi, dword [esi + 8]
lea edx, [esp + 0x40]
push edi
push edx
push 1
push eax
mov eax, dword [esp + 0x44]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x402764
push 0
push 0
push 0x413094
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x14c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x14c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0xc
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14c], 0xb
jmp 0x402c98
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call ebp
add esp, 8
test eax, eax
jne 0x402951
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
call fcn.0040b220
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x402900
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40287e
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x150], 0x10
call fcn.0040bf4a
lea ecx, [esp + 0x34]
mov byte [esp + 0x14c], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push 0x41303c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4028e2
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x12
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14c], 0x11
jmp 0x402c98
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
call fcn.004096d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x17
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14c], 0x16
jmp 0x402c98
mov eax, dword [esp + 0x158]
test eax, eax
jne 0x402a0c
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push 0x413084
push ecx
call ebp
add esp, 8
test eax, eax
push ecx
mov ecx, esp
jne 0x4029ea
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
call fcn.0040b220
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x1c
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14c], 0x1b
jmp 0x402c98
lea eax, [esp + 0x20]
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x154], 0x20
mov ecx, esp
mov dword [esp + 0x3c], esp
jmp 0x402b88
mov eax, dword [esp + 0x1c]
push 0x413084
push eax
call ebp
add esp, 8
test eax, eax
jne 0x402a89
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
call fcn.0040b220
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0x25
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0x24
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x23
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x22
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14c], 0x21
jmp 0x402c98
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
push ecx
test al, 0x10
mov ecx, esp
je 0x402b6b
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
call fcn.0040b220
mov eax, dword [esp + 0x18]
push eax
call edi
test al, 0x10
jne 0x402b03
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid
lea edx, [esp + 0x30]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x150], 0x2c
call fcn.0040bf4a
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push 0x41303c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x402c2e
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0x31
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0x30
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x2f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x2e
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14c], 0x2d
jmp 0x402c98
lea eax, [esp + 0x20]
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x154], 0x26
mov ecx, esp
mov dword [esp + 0x3c], esp
lea edx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
mov byte [esp + 0x154], 6
call fcn.0040a2c0
test eax, eax
jne 0x402ab7
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0x2b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0x2a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x29
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x28
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0x27
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x154]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402cce
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
call fcn.004096d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 0x36
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0x35
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x34
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x33
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14c], 0x32
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x154]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x140
ret 8