Function at 0x409920
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43308b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4440fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 4], 1
call fcn.00406800
mov ecx, eax
test ecx, ecx
je 0x409bae
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x409a41
call fcn.00406800
mov ecx, eax
test ecx, ecx
je 0x409bb8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x43e3a0
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00404590
test al, al
jne 0x4099dd
push 0
push 0x43e3a0
mov ecx, edi
call fcn.00404740
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4099fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409a19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x409b90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409b90
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409b29
push ebx
push dword [ebp - 0x114]
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x43e39c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x114]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409b22
mov ecx, dword [ebp - 0x114]
push dword [ebp + 0xc]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x110]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409b22
mov edx, dword [ebp - 0x11c]
test edx, edx
jne 0x409af7
xor ecx, ecx
jmp 0x409b0f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x118]
call fcn.00404740
mov esi, dword [ebp - 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ebx, [esi - 0x10]
mov ecx, ebx
call fcn.00404650
add eax, 0x10
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov dword [edi], eax
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x409b53
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409b71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x409b90
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414d6a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004065b0
push 0x80004005
call fcn.004065b0
int3