Function at 0x404d10
Capabilities:
Check if file exists
Create directory
Get common file path
Get file version info
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8c
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x520]
mov esi, ecx
push 0
push eax
call fcn.00484a00
add esp, 0xc
lea eax, [ebp - 0x930]
push 0x208
push 0
push eax
call fcn.00484a00
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x208
push 0
push eax
call fcn.00484a00
add esp, 0xc
push 0x620
push 0
push 0x652790
call fcn.00484a00
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.004a2548
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0xc88]
add esp, 0x14
push eax
call ebx
mov esi, eax
lea eax, [ebp - 0x110]
push eax
call ebx
add eax, esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0x104
jge 0x404e17
lea eax, [ebp - 0x110]
push eax
call ebx
dec eax
cmp eax, 0x104
jae 0x405477
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0x930]
push 0x625b34
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x930]
push eax
lea eax, [ebp - 0x520]
push str._s_save
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call ebx
push eax
lea eax, [ebp - 0x520]
push eax
push 0x652ba8
call fcn.0048d2a0
add esp, 0xc
lea eax, [ebp - 0x318]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x404e91
push 0x40020
push 0x6274c8
push 0x6274d4
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x404ed2
push 0x40020
push 0x6274c8
push 0x627504
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x404f20
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x6274c8
push 0x627520
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0xc84]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
jne 0x404f79
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x6274c8
push 0x62756c
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc84]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x318]
push str.StringFileInfo_04x_04xCompanyName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0xc80], 0
jne 0x404ff7
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x6274c8
push 0x6275c4
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc7c]
push esi
call ebx
mov byte [0x652798], 0
mov cl, byte [esi]
test cl, cl
je 0x405026
mov eax, 0x652798
sub esi, eax
cmp cl, 0x2f
je 0x405026
mov byte [eax], cl
inc eax
mov byte [eax], 0
mov cl, byte [esi + eax]
test cl, cl
jne 0x405014
mov edx, dword [ebp - 0xc7c]
push 0x2f
push ecx
push 1
mov ecx, 0x65289c
call fcn.0044e060
add esp, 0xc
push 0x652798
call ebx
push 0x6275fc
mov esi, eax
call ebx
push eax
push esi
mov edx, 0x6275fc
mov ecx, 0x652798
call fcn.0044d990
add esp, 8
push 0x65289c
call ebx
push 0x6275fc
mov esi, eax
call ebx
push eax
push esi
mov edx, 0x6275fc
mov ecx, 0x65289c
call fcn.0044d990
mov ecx, dword [ebp - 0xc84]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x318]
push str.StringFileInfo_04x_04xProductName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0xc80]
add esp, 0x18
push eax
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0xc80], 0
jne 0x405107
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x6274c8
push 0x627628
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc7c]
mov edx, 0x6529a0
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x405114
mov ecx, dword [ebp - 0xc84]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x318]
push str.StringFileInfo_04x_04xOriginalFilename
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0xc80], 0
jne 0x40519f
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x6274c8
push 0x62768c
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc7c]
mov edx, 0x652aa4
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4051b0
mov ecx, dword [ebp - 0xc84]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x318]
push str.StringFileInfo_04x_04xComments
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
push str.SVGA
push dword [ebp - 0xc7c]
call fcn.00484300
mov ecx, dword [0x652784]
test eax, eax
mov edx, 1
cmovne ecx, edx
push edi
mov dword [0x652784], ecx
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 0xc
lea eax, [ebp - 0xb38]
push 0x208
push 0
push eax
call fcn.00484a00
add esp, 0xc
lea eax, [ebp - 0x728]
push 0x208
push 0
push eax
call fcn.00484a00
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x728]
add esp, 0xc
push 0
push 0x1a
push eax
push 0
call esi
test eax, eax
jns 0x40527d
push 0
push 0x23
lea eax, [ebp - 0x728]
push eax
push 0
call esi
push 0x652aa4
push 0x652798
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0xc78]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405315
mov esi, dword [ebp - 0xc78]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and esi, 0x10
jne 0x405315
lea eax, [ebp - 0x110]
push eax
push 0x104
push 0x652ba8
push 0x6273c0
push str.SaveFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x652ba8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405333
lea eax, [ebp - 0xb38]
push eax
call ebx
push eax
lea eax, [ebp - 0xb38]
push eax
push 0x652ba8
call fcn.0048d2a0
add esp, 0xc
mov ecx, 0x652ba8
call fcn.0044d110
cmp eax, 2
je 0x405416
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00484a00
add esp, 0xc
xor esi, esi
push 0x652ba8
call ebx
mov edi, eax
cmp edi, 0x104
jg 0x40542c
cmp byte [0x652ba9], 0x3a
jne 0x40542c
cmp byte [0x652baa], 0x5c
jne 0x40542c
nop dword [eax]
mov al, byte [esi + 0x652ba8]
inc esi
cmp al, 0x5c
jne 0x405390
cmp esi, edi
je 0x405416
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov al, byte [esi + 0x652ba8]
test al, al
je 0x4053dd
nop
inc esi
cmp al, 0x5c
je 0x4053dd
mov al, byte [esi + 0x652ba7]
cmp al, 0x81
jb 0x4053c3
cmp al, 0xfe
jbe 0x4053c9
add al, 0x20
cmp al, 0x1c
ja 0x4053d3
cmp byte [esi + 0x652ba8], 0
je 0x4053dd
inc esi
mov al, byte [esi + 0x652ba8]
test al, al
jne 0x4053b0
push esi
lea eax, [ebp - 0x110]
push 0x652ba8
push eax
call fcn.0048d2a0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405412
lea eax, [ebp - 0x110]
push eax
call ebx
test eax, eax
je 0x40542c
cmp esi, edi
jne 0x4053a5
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push 0x652ba8
lea eax, [ebp - 0x318]
push 0x6276f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x40030
push 0x6274c8
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482be9
mov esp, ebp
pop ebp
ret
call fcn.00482d1d
int3