Function at 0x40d5e0
Capabilities:
Create directory
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x4d3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x520]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x760], ebx
call fcn.00472500
add esp, 0xc
lea eax, [ebp - 0x728]
push 0x208
push 0
push eax
call fcn.00472500
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x208
push 0
push eax
call fcn.00472500
add esp, 0xc
push 0x620
push 0
push 0x4d5ed0
call fcn.00472500
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0047f823
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x75c]
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 0x40d6ed
lea eax, [ebp - 0x110]
push eax
call ebx
dec eax
cmp eax, 0x104
jae 0x40ddf7
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x728]
push 0x4be5cc
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x728]
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 0x4d62e8
call fcn.0047b010
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 0x40d767
push 0x40020
push 0x4be7a0
push 0x4be868
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.0047044a
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 0x40d7a8
push 0x40020
push 0x4be7a0
push 0x4be898
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.0047044a
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 0x40d7f6
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4be7a0
push 0x4be8b4
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.0047044a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0x754]
push eax
lea eax, [ebp - 0x758]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
jne 0x40d84f
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4be7a0
push 0x4be900
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.0047044a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x758]
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 - 0x754]
push eax
lea eax, [ebp - 0x750]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0x754], 0
jne 0x40d8cd
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4be7a0
push 0x4be958
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.0047044a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x750]
push 0x2f
push ecx
push 0
mov ecx, 0x4d5ed8
call fcn.0046bd80
mov edx, dword [ebp - 0x750]
add esp, 0xc
push 0x2f
push ecx
push 1
mov ecx, 0x4d5fdc
call fcn.0046bd80
add esp, 0xc
push 0x4d5ed8
call ebx
push 0x4be990
mov esi, eax
call ebx
push eax
push esi
mov edx, 0x4be990
mov ecx, 0x4d5ed8
call fcn.0046b600
add esp, 8
push 0x4d5fdc
call ebx
push 0x4be990
mov esi, eax
call ebx
push eax
push esi
mov edx, 0x4be990
mov ecx, 0x4d5fdc
call fcn.0046b600
mov ecx, dword [ebp - 0x758]
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 - 0x754]
add esp, 0x18
push eax
lea eax, [ebp - 0x750]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0x754], 0
jne 0x40d9c6
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4be7a0
push 0x4be9bc
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.0047044a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x750]
mov edx, 0x4d60e0
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40d9d3
mov ecx, dword [ebp - 0x758]
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 - 0x754]
push eax
lea eax, [ebp - 0x750]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0x754], 0
jne 0x40da5e
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4be7a0
push 0x4bea20
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.0047044a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x750]
mov esi, 0x4d61e4
sub esi, edx
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x40da70
call dword [sym.imp.PAL.dll_PalSystemPathInit]
xor ecx, ecx
call fcn.00468920
mov ecx, dword [ebp - 0x760]
call fcn.0040d3c0
call dword [sym.imp.PAL.dll_PalSystemPathUninit]
mov ecx, dword [ebp - 0x758]
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 - 0x754]
push eax
lea eax, [ebp - 0x750]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov dword [ebp - 0x748], str._SVGA
xor esi, esi
mov dword [ebp - 0x744], 2
mov dword [ebp - 0x740], str._VGA
mov dword [ebp - 0x73c], 1
mov dword [ebp - 0x738], str._W600P
mov dword [ebp - 0x734], 3
mov dword [ebp - 0x730], str._FHD
mov dword [ebp - 0x72c], 5
nop dword [eax]
push dword [ebp + esi*8 - 0x748]
push dword [ebp - 0x750]
call fcn.00471e00
add esp, 8
test eax, eax
jne 0x40db51
inc esi
cmp esi, 4
jl 0x40db30
jmp 0x40db5d
mov eax, dword [ebp + esi*8 - 0x744]
mov dword [0x4d5ec4], eax
push str.__RUBY
push dword [ebp - 0x750]
mov dword [0x4d5eb4], 1
mov dword [0x4d5eb8], 1
mov dword [0x4d5ec0], 0
call fcn.00471e00
mov ecx, dword [0x4d5eb4]
xor edx, edx
test eax, eax
push str.__GRPOS
push dword [ebp - 0x750]
cmovne ecx, edx
mov dword [0x4d5eb4], ecx
call fcn.00471e00
mov ecx, dword [0x4d5eb8]
xor edx, edx
test eax, eax
mov byte [ebp - 0x749], dl
push str.__DL
push dword [ebp - 0x750]
cmovne ecx, edx
mov dword [0x4d5eb8], ecx
call fcn.00471e00
add esp, 0x18
test eax, eax
je 0x40dbef
mov byte [ebp - 0x749], 1
mov dword [0x4d5ec0], 1
push str.__TRY
push dword [ebp - 0x750]
call fcn.00471e00
add esp, 8
test eax, eax
jne 0x40dc1d
push str.__TRIAL
push dword [ebp - 0x750]
call fcn.00471e00
add esp, 8
test eax, eax
je 0x40dc2e
mov byte [ebp - 0x749], 1
mov dword [0x4d5ec0], 2
push str._BOOT2SKIP
push dword [ebp - 0x750]
call fcn.00471e00
movzx ecx, byte [0x4d5eb1]
test eax, eax
mov edx, 1
push str._DISWND
push dword [ebp - 0x750]
cmovne ecx, edx
mov byte [0x4d5eb1], cl
call fcn.00471e00
add esp, 0x10
test eax, eax
je 0x40dc92
xor eax, eax
mov byte [0x4d5eb0], 1
cmp dword [0x4d5ec0], 2
push 1
sete al
add eax, 3
mov dword [0x4d5ec0], eax
call dword [sym.imp.PAL.dll_PalDisableChangeWindowMode]
add esp, 4
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
mov dl, byte [ebp - 0x749]
lea ecx, [ebp - 0x728]
add esp, 4
call fcn.0040d030
mov ecx, 0x4d62e8
call fcn.00469c90
cmp eax, 2
je 0x40dd96
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00472500
add esp, 0xc
xor esi, esi
push 0x4d62e8
call ebx
mov edi, eax
cmp edi, 0x104
jg 0x40ddac
cmp byte [0x4d62e9], 0x3a
jne 0x40ddac
cmp byte [0x4d62ea], 0x5c
jne 0x40ddac
mov al, byte [esi + 0x4d62e8]
inc esi
cmp al, 0x5c
jne 0x40dd07
cmp esi, edi
je 0x40dd96
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov al, byte [esi + 0x4d62e8]
test al, al
je 0x40dd5d
nop word [eax + eax]
inc esi
cmp al, 0x5c
je 0x40dd5d
mov al, byte [esi + 0x4d62e7]
cmp al, 0x81
jb 0x40dd43
cmp al, 0x9f
jbe 0x40dd49
add al, 0x20
cmp al, 0x1c
ja 0x40dd53
cmp byte [esi + 0x4d62e8], 0
je 0x40dd5d
inc esi
mov al, byte [esi + 0x4d62e8]
test al, al
jne 0x40dd30
push esi
lea eax, [ebp - 0x110]
push 0x4d62e8
push eax
call fcn.0047b010
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40dd92
lea eax, [ebp - 0x110]
push eax
call ebx
test eax, eax
je 0x40ddac
cmp esi, edi
jne 0x40dd20
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047044a
mov esp, ebp
pop ebp
ret
push 0x4d62e8
lea eax, [ebp - 0x318]
push 0x4beae0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x40030
push 0x4be7a0
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.0047044a
mov esp, ebp
pop ebp
ret
call fcn.004709e6
int3