Function at 0x406170
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca50
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x463444]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 4], 0
push 0x453b1b
lea ecx, [ebp - 0x1c]
call fcn.00402330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004029a0
lea ecx, [ebp + 0xc]
call fcn.00402a10
test eax, eax
jne 0x406215
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403190
mov ecx, dword [ebp - 0x110]
or ecx, 1
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402f30
mov eax, dword [ebp + 8]
jmp 0x406463
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 0xc]
call fcn.0040dcb0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40626e
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403190
mov ecx, dword [ebp - 0x110]
or ecx, 1
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402f30
mov eax, dword [ebp + 8]
jmp 0x406463
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041ae24
add esp, 4
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.0040dcb0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4062fb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.0041ae19
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403190
mov eax, dword [ebp - 0x110]
or eax, 1
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402f30
mov eax, dword [ebp + 8]
jmp 0x406463
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0x456690
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x406372
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
call fcn.0041ae19
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403190
mov ecx, dword [ebp - 0x110]
or ecx, 1
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402f30
mov eax, dword [ebp + 8]
jmp 0x406463
mov dword [ebp - 0x28], 0
jmp 0x406384
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x20]
shr eax, 2
cmp dword [ebp - 0x28], eax
jae 0x4063ee
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*4 + 2]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*4]
push eax
push 0x4566ac
lea ecx, [ebp - 0xfc]
push ecx
call fcn.004390c8
add esp, 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004066d0
jmp 0x40637b
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0041ae19
add esp, 4
push 0x453b22
push 0x4566d4
lea ecx, [ebp - 0x1c]
call fcn.00406870
push 0x4566d8
push 0x4566dc
lea ecx, [ebp - 0x1c]
call fcn.00406870
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403190
mov ecx, dword [ebp - 0x110]
or ecx, 1
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402f30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.004381fb
mov esp, ebp
pop ebp
ret 8