Function at 0x603a04
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x603a0c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov esi, eax
mov eax, dword [ebp - 8]
mov edx, dword [0x5fb90c]
call fcn.0040d1e4
xor eax, eax
push ebp
push 0x6040de
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.0040bca4
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.0040c824
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x6040a1
mov eax, ebx
call fcn.0040712c
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x60409a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x20]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x604082
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x6040f0
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x604082
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
and eax, 2
cmp eax, 2
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x58], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
and eax, 1
cmp eax, 1
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x59], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
and eax, 8
cmp eax, 8
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x5a], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x6040f4
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603baf
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x10]
movzx esi, word [eax]
mov eax, ebx
shr eax, 0x10
movzx eax, ax
movzx edx, si
shl edx, 0x10
or eax, edx
lea ecx, [ebp - 4]
mov edx, 8
call fcn.0042ff18
jmp 0x603bbc
lea eax, [ebp - 4]
mov edx, 0x604134
call fcn.0040bcec
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x604184
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x28]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603c02
mov eax, dword [ebp - 8]
add eax, 0x10
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x6041b0
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x2c]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603c48
mov eax, dword [ebp - 8]
add eax, 0xc
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x6041d8
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x30]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603c8e
mov eax, dword [ebp - 8]
add eax, 0x1c
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x604208
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x34]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603cd4
mov eax, dword [ebp - 8]
add eax, 0x24
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x604234
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x38]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603d1a
mov eax, dword [ebp - 8]
add eax, 0x28
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x604264
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x3c]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603d60
mov eax, dword [ebp - 8]
add eax, 0x20
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x604284
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x40]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603da6
mov eax, dword [ebp - 8]
add eax, 0x54
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x6042ac
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x44]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603dec
mov eax, dword [ebp - 8]
add eax, 0x14
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x6042d4
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x48]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603e32
mov eax, dword [ebp - 8]
add eax, 0x18
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x6042fc
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x4c]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603e78
mov eax, dword [ebp - 8]
add eax, 0x2c
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x604324
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x50]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603ebe
mov eax, dword [ebp - 8]
add eax, 0x30
mov edx, dword [ebp - 0x14]
call fcn.0040c884
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
lea edx, [ebp - 0x6c]
mov ecx, 2
mov eax, 0x604354
call fcn.004313e8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 8]
add eax, 8
call fcn.0040bca4
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x90]
mov ecx, 3
mov eax, 0x604374
call fcn.004313e8
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040bca4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x604154
push dword [ebp - 4]
push 0x604398
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.0040cb14
mov eax, dword [ebp - 0x94]
call fcn.0040c824
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x603fbc
mov eax, dword [ebp - 8]
add eax, 0x5c
mov edx, dword [ebp - 0x14]
call fcn.0040c884
mov eax, dword [ebp - 8]
cmp byte [eax + 0x58], 0
je 0x60407e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
jbe 0x604041
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea edx, [ebp - 0x90]
mov ecx, 3
mov eax, 0x6043c4
call fcn.004313e8
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040bca4
jmp 0x60407e
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
lea edx, [ebp - 0xa4]
xor ecx, ecx
mov eax, 0x6043f4
call fcn.004313e8
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0040bca4
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6040a1
mov eax, dword [ebp - 0x20]
call fcn.0040717c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6040e5
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.0040b914
lea eax, [ebp - 0x70]
call fcn.0040b8b4
lea eax, [ebp - 0x54]
mov edx, 0xc
call fcn.0040b914
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax