Function at 0x414240
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4368f7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2244
call fcn.004350b0
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x2240], eax
push ebx
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x2258]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x41443c
mov esi, dword [ebx + 4]
test esi, esi
je 0x41443c
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x41443c
mov edx, dword [ebx + 0x10]
cmp edx, 0x80
jle 0x41443c
push eax
mov eax, dword [ebx + 8]
push edx
push ecx
push eax
push str.RegAppEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx + 0xc]
cmp word [eax], 0
je 0x41443c
test eax, eax
je 0x41443c
push eax
lea ecx, [esp + 0x1c]
call fcn.00409f80
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], 0
mov dword [esp + 0x2260], 0
lea ecx, [esp + 0x18]
je 0x4145ac
push 0x43a1e4
push 0
call fcn.00408cc0
push eax
call dword [sym.imp.MSVCR90.dll_wcstok]
mov esi, eax
add esp, 8
test esi, esi
je 0x41435c
lea ebx, [edi + 0x34]
push esi
mov ecx, ebx
call fcn.00409560
mov ecx, ebx
call fcn.00409310
mov ecx, ebx
call fcn.004092b0
push 0x43a1e4
push 0
call dword [sym.imp.MSVCR90.dll_wcstok]
mov ebx, dword [esp + 0x30]
add esp, 8
mov esi, eax
mov edx, dword [0x4444f4]
mov dword [esp + 0x14], edx
mov byte [esp + 0x2260], 1
test esi, esi
je 0x4143fb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.00408db0
test eax, eax
je 0x4143c2
mov ebx, dword [esp + 0x1c]
add ebx, ebx
lea ecx, [ebx + 2]
cmp ecx, ebx
jb 0x4143ad
push ebx
push esi
mov esi, dword [esp + 0x1c]
push esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x4143b1
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esi - 8], edx
mov word [ebx + esi], ax
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
call fcn.00409310
lea ecx, [esp + 0x14]
call fcn.004092b0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x38]
call fcn.004138c0
push 0x43a1e4
push 0
call dword [sym.imp.MSVCR90.dll_wcstok]
mov esi, eax
add esp, 8
test esi, esi
jne 0x414376
lea ecx, [esp + 0x18]
call fcn.00408d40
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov dword [esi - 8], eax
push str.RegAppPath
mov ecx, ebx
mov word [esi + eax*2], dx
call fcn.00410820
mov esi, eax
test esi, esi
jne 0x414443
lea ecx, [esp + 0x14]
call fcn.00410b70
lea ecx, [esp + 0x18]
call fcn.00410b70
xor eax, eax
jmp 0x414764
push esi
call fcn.0042ec90
movzx ecx, word [0x44935c]
mov ebx, eax
movzx eax, word [0x45394c]
push eax
push ecx
push esi
call fcn.0042ec50
add esp, 0x10
push esi
lea ecx, [esp + 0x28]
call fcn.00409f80
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2264], 2
call fcn.00410ba0
mov dword [edi + 0x28], eax
lea eax, [edi + 0x2c]
push eax
push ebx
push esi
call fcn.0042eeb0
lea esi, [edi + 0x30]
push esi
push ebx
push eax
call fcn.0042eeb0
push 0x2000
lea eax, [esp + 0x268]
push 0
mov ebx, 1
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0x1000
call sub.MSVCR90.dll_memset
mov esi, dword [esi]
mov eax, dword [edi + 0x2c]
add esp, 0x24
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x250]
push edx
mov edx, dword [edi + 0x28]
lea ecx, [esp + 0x40]
push ecx
push esi
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x38], ebx
jne 0x414747
cmp word [esp + 0x24c], 0
je 0x414747
cmp dword [esp + 0x34], 0
jbe 0x414747
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x24]
call fcn.00409f80
mov eax, dword [edi + 0x34]
mov ebx, dword [esp + 0x20]
lea esi, [edi + 0x34]
push eax
push ebx
lea ecx, [esp + 0x254]
push ecx
mov byte [esp + 0x226c], 3
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x24c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41458d
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x24]
mov dword [edi + 0x98], 1
call fcn.00409500
push 0
lea ecx, [esp + 0x250]
push ecx
mov ecx, 0x450820
call fcn.0042f770
test eax, eax
jne 0x4145bb
push 0x43a1d4
lea ecx, [edi + 0x1c]
call fcn.00409560
lea ecx, [esp + 0x20]
call fcn.00410b70
lea ecx, [esp + 0x24]
call fcn.00410b70
lea ecx, [esp + 0x14]
call fcn.00410b70
lea ecx, [esp + 0x18]
call fcn.00410b70
mov eax, 1
jmp 0x414764
mov ecx, dword [esp + 0x28]
push str.RegVersionFile
call fcn.00410820
push eax
lea ecx, [esp + 0x20]
call fcn.00409f80
mov edx, dword [esp + 0x1c]
cmp dword [edx - 8], 0
mov byte [esp + 0x2260], 4
jne 0x4145ef
push esi
lea ecx, [esp + 0x20]
call fcn.00409500
mov eax, dword [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x24c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41462b
mov eax, dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
push ebx
lea ecx, [esp + 0x254]
push ecx
call esi
jmp 0x414631
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
lea edx, [esp + 0x250]
push edx
mov ecx, 0x450820
call fcn.0042f770
test eax, eax
jne 0x414664
push 0x43a1d4
lea ecx, [edi + 0x1c]
call fcn.00409560
lea ecx, [esp + 0x1c]
call fcn.00410b70
jmp 0x41458d
push 0x104
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x254]
push ecx
call fcn.004108f0
add esp, 0xc
lea edx, [esp + 0x44]
lea ecx, [edi + 0x1c]
push edx
mov dword [esp + 0x2c], ecx
call fcn.00409560
lea eax, [esp + 0x2c]
add edi, 0x38
push eax
mov ecx, edi
call fcn.00411810
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.00411840
push eax
lea ecx, [esp + 0x30]
call fcn.00410d20
test al, al
je 0x414739
lea esp, [esp]
lea ecx, [esp + 0x2c]
call fcn.00410ca0
mov edx, dword [eax]
cmp dword [edx - 8], 0
je 0x4146fa
lea ecx, [esp + 0x2c]
call fcn.00410ca0
mov eax, dword [eax]
push eax
push ebx
lea ecx, [esp + 0x254]
push ecx
call esi
lea edx, [esp + 0x24c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41472b
lea ecx, [esp + 0x2c]
call fcn.00410ce0
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.00411840
push eax
lea ecx, [esp + 0x30]
call fcn.00410d20
test al, al
jne 0x4146c0
lea ecx, [esp + 0x1c]
call fcn.00410b70
jmp 0x41458d
mov ecx, dword [esp + 0x28]
push 0x43a1d4
call fcn.00409560
lea ecx, [esp + 0x1c]
call fcn.00410b70
jmp 0x41458d
lea ecx, [esp + 0x24]
call fcn.00410b70
lea ecx, [esp + 0x14]
call fcn.00410b70
lea ecx, [esp + 0x18]
call fcn.00410b70
mov eax, ebx
mov ecx, dword [esp + 0x2258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2240]
xor ecx, esp
call fcn.00434fc4
mov esp, ebp
pop ebp
ret 8