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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x73c
mov eax, dword [0x4d0008]
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.0046f210
add esp, 0xc
lea eax, [ebp - 0x728]
push 0x208
push 0
push eax
call fcn.0046f210
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x208
push 0
push eax
call fcn.0046f210
add esp, 0xc
push 0x620
push 0
push 0x4d2e70
call fcn.0046f210
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 - 0x73c]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0047c513
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x73c]
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 0x40d2f7
lea eax, [ebp - 0x110]
push eax
call ebx
dec eax
cmp eax, 0x104
jae 0x40d9f7
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x73c]
push eax
lea eax, [ebp - 0x728]
push 0x4bb52c
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 0x4d3288
call fcn.00477d10
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 0x40d371
push 0x40020
push 0x4bb704
push 0x4bb794
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.0046d15f
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 0x40d3b2
push 0x40020
push 0x4bb704
push 0x4bb7c4
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.0046d15f
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 0x40d400
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4bb704
push 0x4bb7e0
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.0046d15f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0x734]
push eax
lea eax, [ebp - 0x738]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
jne 0x40d459
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4bb704
push 0x4bb82c
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.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x738]
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 - 0x734]
push eax
lea eax, [ebp - 0x72c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0x734], 0
jne 0x40d4d7
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4bb704
push 0x4bb884
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.0046d15f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x72c]
push 0x2f
push ecx
push 0
mov ecx, 0x4d2e78
call fcn.004685d0
mov edx, dword [ebp - 0x72c]
add esp, 0xc
push 0x2f
push ecx
push 1
mov ecx, 0x4d2f7c
call fcn.004685d0
add esp, 0xc
push 0x4d2e78
call ebx
push 0x4bb8bc
mov esi, eax
call ebx
push eax
push esi
mov edx, 0x4bb8bc
mov ecx, 0x4d2e78
call fcn.00467e40
add esp, 8
push 0x4d2f7c
call ebx
push 0x4bb8bc
mov esi, eax
call ebx
push eax
push esi
mov edx, 0x4bb8bc
mov ecx, 0x4d2f7c
call fcn.00467e40
mov ecx, dword [ebp - 0x738]
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 - 0x734]
add esp, 0x18
push eax
lea eax, [ebp - 0x72c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0x734], 0
jne 0x40d5d0
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4bb704
push 0x4bb8e8
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.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x72c]
mov edx, 0x4d3080
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40d5e0
mov ecx, dword [ebp - 0x738]
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 - 0x734]
push eax
lea eax, [ebp - 0x72c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
cmp dword [ebp - 0x734], 0
jne 0x40d66b
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push 0x40020
push 0x4bb704
push 0x4bb94c
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.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x72c]
mov edx, 0x4d3184
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40d680
mov ecx, dword [ebp - 0x738]
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 - 0x734]
push eax
lea eax, [ebp - 0x72c]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
call esi
push str._SVGA
push dword [ebp - 0x72c]
call fcn.0046eb10
add esp, 8
test eax, eax
je 0x40d6ec
mov dword [0x4d2e68], 2
jmp 0x40d75b
push str._VGA
push dword [ebp - 0x72c]
call fcn.0046eb10
add esp, 8
test eax, eax
je 0x40d70f
mov dword [0x4d2e68], 1
jmp 0x40d75b
push str._W600P
push dword [ebp - 0x72c]
call fcn.0046eb10
add esp, 8
test eax, eax
je 0x40d732
mov dword [0x4d2e68], 3
jmp 0x40d75b
push str._FHD
push dword [ebp - 0x72c]
call fcn.0046eb10
mov ecx, dword [0x4d2e68]
add esp, 8
test eax, eax
mov edx, 5
cmovne ecx, edx
mov dword [0x4d2e68], ecx
push str.__RUBY
push dword [ebp - 0x72c]
mov dword [0x4d2e54], 1
mov dword [0x4d2e58], 1
mov dword [0x4d2e64], 0
call fcn.0046eb10
mov ecx, dword [0x4d2e54]
xor edx, edx
test eax, eax
push str.__GRPOS
push dword [ebp - 0x72c]
cmovne ecx, edx
mov dword [0x4d2e54], ecx
call fcn.0046eb10
mov ecx, dword [0x4d2e58]
xor edx, edx
test eax, eax
mov byte [ebp - 0x72d], dl
push str.__DL
push dword [ebp - 0x72c]
cmovne ecx, edx
mov dword [0x4d2e58], ecx
call fcn.0046eb10
add esp, 0x18
test eax, eax
je 0x40d7ed
mov byte [ebp - 0x72d], 1
mov dword [0x4d2e64], 1
push str.__TRY
push dword [ebp - 0x72c]
call fcn.0046eb10
add esp, 8
test eax, eax
jne 0x40d81b
push str.__TRIAL
push dword [ebp - 0x72c]
call fcn.0046eb10
add esp, 8
test eax, eax
je 0x40d82c
mov byte [ebp - 0x72d], 1
mov dword [0x4d2e64], 2
push str._BOOT2SKIP
push dword [ebp - 0x72c]
call fcn.0046eb10
movzx ecx, byte [0x4d2e51]
test eax, eax
mov edx, 1
push str._DISWND
push dword [ebp - 0x72c]
cmovne ecx, edx
mov byte [0x4d2e51], cl
call fcn.0046eb10
add esp, 0x10
test eax, eax
je 0x40d890
xor eax, eax
mov byte [0x4d2e50], 1
cmp dword [0x4d2e64], 2
push 1
sete al
add eax, 3
mov dword [0x4d2e64], eax
call dword [sym.imp.PAL.dll_void___cdecl_PalDisableChangeWindowMode_int_]
add esp, 4
push edi
call dword [sym.imp.PAL.dll_PalMemoryFree]
mov dl, byte [ebp - 0x72d]
lea ecx, [ebp - 0x728]
add esp, 4
call fcn.0040cf20
mov ecx, 0x4d3288
call fcn.004664d0
cmp eax, 2
je 0x40d996
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0046f210
add esp, 0xc
xor esi, esi
push 0x4d3288
call ebx
mov edi, eax
cmp edi, 0x104
jg 0x40d9ac
cmp byte [0x4d3289], 0x3a
jne 0x40d9ac
cmp byte [0x4d328a], 0x5c
jne 0x40d9ac
mov al, byte [esi + 0x4d3288]
inc esi
cmp al, 0x5c
jne 0x40d905
cmp esi, edi
je 0x40d996
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
nop
mov al, byte [esi + 0x4d3288]
test al, al
je 0x40d95d
nop word [eax + eax]
inc esi
cmp al, 0x5c
je 0x40d95d
mov al, byte [esi + 0x4d3287]
cmp al, 0x81
jb 0x40d943
cmp al, 0x9f
jbe 0x40d949
add al, 0x20
cmp al, 0x1c
ja 0x40d953
cmp byte [esi + 0x4d3288], 0
je 0x40d95d
inc esi
mov al, byte [esi + 0x4d3288]
test al, al
jne 0x40d930
push esi
lea eax, [ebp - 0x110]
push 0x4d3288
push eax
call fcn.00477d10
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40d992
lea eax, [ebp - 0x110]
push eax
call ebx
test eax, eax
je 0x40d9ac
cmp esi, edi
jne 0x40d920
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push 0x4d3288
lea eax, [ebp - 0x318]
push 0x4bba10
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x40030
push 0x4bb704
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.0046d15f
mov esp, ebp
pop ebp
ret
call fcn.0046d6fb
int3