Function at 0x404327
Capabilities:
Check if file exists
Get common file path
Get program files directory
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.004096e0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41e]
mov word [ebp - 0x420], bx
mov dword [ebp - 0x10], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40d820
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsTheWorld.exe
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4043bb
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4043bb
lea eax, [ebp - 0x420]
mov dword [esi + 8], ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x420]
lea eax, [esi + 0x18]
push ecx
push 0x40c234
jmp 0x4043f6
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc3e]
mov word [ebp - 0xc40], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0xc40]
push 0x26
push eax
push ebx
mov dword [esi + 8], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xc40]
lea eax, [esi + 0x18]
push ecx
push str._sTheWorld_3
push eax
call fcn.00403c5c
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xe46]
mov word [ebp - 0xe48], bx
rep stosd dword es:[edi], eax
add esp, 0xc
cmp dword [esi + 4], 6
stosw word es:[edi], ax
jle 0x40444a
mov ecx, esi
call fcn.0040425c
test eax, eax
je 0x40444a
push ebx
lea eax, [ebp - 0xe48]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xe48]
lea eax, [esi + 0x1c]
push ecx
push str._sTheWorld
jmp 0x404455
push dword [esi + 0x18]
lea eax, [esi + 0x1c]
push 0x40c234
push eax
call fcn.00403c5c
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x104e]
mov word [ebp - 0x1050], bx
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x1050]
push 0x17
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x1050]
push 0x40c1f0
push eax
lea eax, [esi + 0x20]
push str._s_s
push eax
call fcn.00403c5c
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa36]
mov word [ebp - 0xa38], bx
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0xa38]
push 0x16
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xa38]
lea edi, [esi + 0x24]
test eax, eax
je 0x4044e7
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xa38]
push ecx
push eax
mov ecx, edi
call fcn.00405965
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x82e]
mov word [ebp - 0x830], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x830]
push 0x19
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x830]
lea edi, [esi + 0x28]
test eax, eax
je 0x404539
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x830]
push ecx
push eax
mov ecx, edi
call fcn.00405965
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
mov word [ebp - 0x218], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push str.MicrosoftInternet_ExplorerQuick_Launch
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x218]
pop ecx
test eax, eax
pop ecx
lea edi, [esi + 0x2c]
je 0x4045ab
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
call fcn.00405965
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x626]
mov word [ebp - 0x628], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x628]
push 6
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x628]
lea edi, [esi + 0x30]
test eax, eax
je 0x4045fd
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x628]
push ecx
push eax
mov ecx, edi
call fcn.00405965
lea eax, [esi + 0x1c]
push str.TheWorld.ini
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004059cf
push eax
lea ecx, [esi + 0x38]
call fcn.00405915
lea ecx, [ebp - 0xc]
call fcn.00404036
pop edi
pop esi
pop ebx
leave
ret