Function at 0x40db9a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dec5
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
and dword [ebp - 4], 0
lea edi, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0xb4], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
push dword [edx]
lea eax, [ebp - 0x90]
push eax
call fcn.0040ce80
mov ecx, dword [ebp - 0x90]
add esp, 0xc
test ecx, ecx
je 0x40dc33
call fcn.0040c9c3
mov byte [ebp - 4], 1
jmp 0x40dc42
push dword [ebp - 0x98]
lea ecx, [ebp - 0x50]
call fcn.0040e558
pop ecx
shr eax, 0x1f
test al, al
je 0x40dc60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
lea ecx, [ebp - 0x50]
call fcn.0040d737
mov eax, ebx
jmp 0x40ded9
push edi
push dword [ebp - 0x50]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x40dc49
mov dword [ebp - 0x98], edi
push esi
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040e05c
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa4]
push esi
cmp eax, esi
jb 0x40dcc1
push edi
push dword [ebp - 0xa4]
call fcn.00422e80
mov eax, dword [ebp - 0xa4]
add esp, 0xc
add eax, esi
mov dword [ebp - 0xa4], eax
jmp 0x40dcd3
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0040e2d1
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 6
push dword [ebp - 0xa8]
sub eax, dword [ebp - 0xa8]
push eax
push edi
push dword [ebp - 0x50]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40dd0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xa8]
mov dword [ebx], eax
call fcn.0040d718
jmp 0x40dc51
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], edi
push eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], edi
push eax
push str.StringFileInfo040904B0ProductVersion
push dword [ebp - 0xa8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40ddb5
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x40ddb5
mov ecx, dword [ebp - 0xac]
xor edx, edx
cmp word [ecx + eax*2 - 2], dx
jne 0x40dd59
dec eax
mov dword [ebp - 0x94], eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 4
mov byte [ebp - 0x18], dl
call fcn.0040e385
push dword [ebp - 0x98]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040e11a
pop ecx
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040dfd0
lea ecx, [ebp - 0x8c]
call fcn.0040d77a
jmp 0x40dea5
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], edi
push eax
lea eax, [ebp - 0x90]
push eax
push 0x44bbb8
push dword [ebp - 0xa8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40dea7
cmp dword [ebp - 0x94], 0x34
jne 0x40dea7
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
call fcn.0040ce58
push 7
mov eax, dword [ebp - 0x90]
lea esi, [ebp - 0x6c]
pop ecx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movzx eax, word [eax + 0xa]
lea edx, [ebp - 0x2c]
push ecx
push ecx
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
push eax
call fcn.0040e4bf
add esp, 0x10
lea ecx, [ebp - 0x30]
mov edi, 0x44b80c
mov edx, edi
call fcn.0040db40
mov ecx, dword [ebp - 0x90]
mov esi, eax
movzx ecx, word [ecx + 8]
lea edx, [esi + 4]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [esi]
call fcn.0040e4bf
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.0040db40
mov ecx, dword [ebp - 0x90]
mov esi, eax
movzx ecx, word [ecx + 0xe]
lea edx, [esi + 4]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [esi]
call fcn.0040e4bf
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.0040db40
mov ecx, dword [ebp - 0x90]
lea edx, [eax + 4]
movzx ecx, word [ecx + 0xc]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [eax]
call fcn.0040e4bf
add esp, 0x10
xor edi, edi
lea ecx, [ebp - 0xa8]
call fcn.0040d718
lea ecx, [ebp - 0x50]
call fcn.0040d737
mov dword [ebx], edi
jmp 0x40dc59
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ebed
leave
ret