Function at 0x40d7b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430e05
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x43c034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x58], edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
jb 0x40d7f6
mov ecx, dword [eax]
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x40d823
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x40db08
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
cmp eax, 0x7fffffff
ja 0x40db25
cmp eax, 0x1000
jb 0x40d871
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40db2a
push ecx
call fcn.00428a13
add esp, 4
test eax, eax
je 0x40db34
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x40d87c
push eax
call fcn.00428a13
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push esi
lea eax, [esi + ecx]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40d8ac
mov eax, dword [eax]
push esi
push dword [ebp - 0x44]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40d8e5
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
test esi, esi
je 0x40db08
mov ecx, dword [ebp - 0x44]
jmp 0x40dae4
mov ecx, dword [ebp - 0x4c]
mov eax, 0x7ffffffe
mov edx, dword [ecx + 0x10]
sub eax, edx
mov dword [ebp - 0x54], edx
cmp eax, 0x10
jb 0x40db2f
cmp dword [ecx + 0x14], 8
jb 0x40d909
mov ecx, dword [ecx]
mov dword [ebp - 0x4c], ecx
lea eax, [edx + 0x10]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
mov eax, 7
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], ecx
movups xmmword [ebp - 0x40], xmm0
cmp dword [ebp - 0x44], eax
jbe 0x40d96a
mov eax, dword [ebp - 0x44]
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x40d948
mov eax, 0x7ffffffe
jmp 0x40d952
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x40]
inc eax
push eax
call fcn.00404c80
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], ecx
movups xmm0, xmmword [str.StringFileInfo_]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x434d80]
lea eax, [edx + edx]
mov edx, dword [ebp - 0x4c]
push eax
movups xmmword [ecx + 0x10], xmm0
add ecx, 0x20
push edx
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x48]
xor edx, edx
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov word [eax + ecx*2], dx
push 0xc
push 0x434d54
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00404e30
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x68]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
cmp ecx, 8
jb 0x40da4e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40da44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db34
push ecx
push edx
call fcn.00428a43
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp ecx, 8
jb 0x40da9f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40da95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db34
push ecx
push edx
call fcn.00428a43
add esp, 8
cmp dword [ebp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
je 0x40dac8
push dword [ebp - 0x68]
mov ecx, edi
push dword [ebp - 0x58]
call fcn.00401350
jmp 0x40dadb
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
test esi, esi
je 0x40db08
mov ecx, dword [ebp - 0x5c]
sub ecx, esi
cmp ecx, 0x1000
jb 0x40dafe
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40db34
mov esi, edx
push ecx
push esi
call fcn.00428a43
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428a51
mov esp, ebp
pop ebp
ret
call fcn.00404c10
call fcn.00404bc0
call fcn.00404c00
call fcn.00429ae0
int3