Function at 0x406940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bfdc
mov eax, dword fs:[0]
push eax
sub esp, 0x8e0
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8a4], ecx
mov byte [ebp - 0x859], 0
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x864], 0
xor eax, eax
mov word [ebp - 0x830], ax
push 0x208
push 0
lea ecx, [ebp - 0x82e]
push ecx
call fcn.004597c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x830]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0x420], ax
push 0x200
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004597c0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x18], dx
xor eax, eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x200
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.004597c0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x624], ax
push 0x200
push 0
lea ecx, [ebp - 0x622]
push ecx
call fcn.004597c0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x624]
push edx
push 0x100
lea eax, [ebp - 0x420]
push eax
push 0x100
lea ecx, [ebp - 0x21c]
push ecx
push 3
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x830]
push eax
call fcn.0045dab6
add esp, 0x24
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x8ec]
call fcn.004072e0
mov dword [ebp - 0x87c], eax
mov edx, dword [ebp - 0x87c]
mov dword [ebp - 0x880], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x880]
push ecx
lea edx, [ebp - 0x8d4]
push edx
call fcn.00407ac0
add esp, 0xc
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x888], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x888]
push edx
lea eax, [ebp - 0x8bc]
push eax
call fcn.00407ac0
add esp, 0xc
mov dword [ebp - 0x88c], eax
mov ecx, dword [ebp - 0x88c]
mov dword [ebp - 0x890], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x624]
push edx
mov eax, dword [ebp - 0x890]
push eax
lea ecx, [ebp - 0x850]
push ecx
call fcn.00407ac0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8bc]
call fcn.004089f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8d4]
call fcn.004089f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8ec]
call fcn.004089f0
mov ecx, dword [ebp + 8]
call fcn.00403600
test eax, eax
je 0x406b61
lea ecx, [ebp - 0x850]
call fcn.00403600
test eax, eax
jne 0x406b66
jmp 0x406d1c
lea edx, [ebp - 0x834]
push edx
lea ecx, [ebp - 0x850]
call fcn.004087f0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x86c], eax
cmp dword [ebp - 0x86c], 0
jne 0x406b93
jmp 0x406d1c
push 0x49c24c
mov eax, dword [ebp - 0x86c]
push eax
call fcn.004570b4
add esp, 8
mov dword [ebp - 0x894], eax
mov ecx, dword [ebp - 0x894]
mov dword [ebp - 0x860], ecx
cmp dword [ebp - 0x860], 0
jne 0x406bc7
jmp 0x406d1c
mov edx, dword [ebp - 0x860]
push edx
mov eax, dword [ebp - 0x86c]
push eax
mov ecx, dword [ebp - 0x834]
push ecx
lea ecx, [ebp - 0x850]
call fcn.004087f0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x406bf7
jmp 0x406d1c
lea edx, [ebp - 0x838]
push edx
lea eax, [ebp - 0x854]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 0x860]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x406c20
jmp 0x406d1c
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x854]
mov edx, dword [ecx + eax]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
and eax, 0xffff
movzx ecx, ax
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 0x854]
mov eax, dword [edx + eax]
and eax, 0xffff
movzx edx, ax
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x870], ecx
cmp dword [ebp - 0x860], 0
jne 0x406c80
jmp 0x406d1c
push 0x49c24c
push 0x100
call fcn.004570b4
add esp, 8
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x898]
mov dword [ebp - 0x864], ecx
cmp dword [ebp - 0x864], 0
jne 0x406caf
jmp 0x406d1c
mov ecx, dword [ebp + 8]
call fcn.004087f0
push eax
mov edx, dword [ebp - 0x870]
push edx
push str.StringFileInfo_08lx_s
push 0x80
mov eax, dword [ebp - 0x864]
push eax
call fcn.00408770
add esp, 0x14
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x858]
push edx
mov eax, dword [ebp - 0x864]
push eax
mov ecx, dword [ebp - 0x860]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406d0d
mov edx, dword [ebp - 0x858]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00407250
mov byte [ebp - 0x859], 1
xor eax, eax
jne 0x406b46
cmp dword [ebp - 0x860], 0
je 0x406d75
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x874], ecx
mov edx, dword [ebp - 0x874]
push edx
call fcn.004570bd
add esp, 4
cmp dword [ebp - 0x874], 0
jne 0x406d55
mov dword [ebp - 0x89c], 0
jmp 0x406d6b
mov dword [ebp - 0x860], 0x8123
mov eax, dword [ebp - 0x860]
mov dword [ebp - 0x89c], eax
mov dword [ebp - 0x860], 0
cmp dword [ebp - 0x864], 0
je 0x406dce
mov ecx, dword [ebp - 0x864]
mov dword [ebp - 0x878], ecx
mov edx, dword [ebp - 0x878]
push edx
call fcn.004570bd
add esp, 4
cmp dword [ebp - 0x878], 0
jne 0x406dae
mov dword [ebp - 0x8a0], 0
jmp 0x406dc4
mov dword [ebp - 0x864], 0x8123
mov eax, dword [ebp - 0x864]
mov dword [ebp - 0x8a0], eax
mov dword [ebp - 0x864], 0
mov cl, byte [ebp - 0x859]
mov byte [ebp - 0x865], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.004089f0
mov al, byte [ebp - 0x865]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret 8