Function at 0x4431c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4633c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x494680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 0
je 0x443222
push str.GetFileVersion__:
lea ecx, [ebp - 0x30]
call fcn.00401a60
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 2
call fcn.0045c270
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405030
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404b10
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x443413
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040915b
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00404b10
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4433c6
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x46ce74
mov eax, dword [ebp - 0x20]
push eax
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x44338b
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00409166
add esp, 4
cmp dword [ebp + 0x1c], 0
je 0x44337f
lea ecx, [ebp - 0x2c]
call fcn.00404f90
mov dword [ebp - 4], 1
push str.File_version:__1_u_._2_u_._3_u_._4_u_
lea ecx, [ebp - 0x28]
call fcn.00401a60
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404b10
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00404590
add esp, 0x18
push 0
lea edx, [ebp - 0x2c]
push edx
push 2
call fcn.0045c8c0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405030
mov eax, 1
jmp 0x44344e
cmp dword [ebp + 0x1c], 0
je 0x4433c4
push 0x46d040
lea ecx, [ebp - 0x3c]
call fcn.00401a60
mov dword [ebp - 4], 3
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00405030
jmp 0x4433ff
cmp dword [ebp + 0x1c], 0
je 0x4433ff
push str.GetFileVersionInfo___failed_in_GetFileVersion__.
lea ecx, [ebp - 0x40]
call fcn.00401a60
mov dword [ebp - 4], 4
push 0
lea ecx, [ebp - 0x40]
push ecx
push 1
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405030
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00409166
add esp, 4
jmp 0x44344c
cmp dword [ebp + 0x1c], 0
je 0x44344c
push str.GetFileVersionInfoSize___failed_in_GetFileVersion__.
lea ecx, [ebp - 0x48]
call fcn.00401a60
mov dword [ebp - 4], 5
push 0
lea ecx, [ebp - 0x48]
push ecx
push 1
call fcn.0045c8c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00405030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret