Function at 0x10039d40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x230], ecx
push edi
push esi
push ecx
mov edi, edx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x1003a010
push 0x1007da74
push eax
call fcn.1005be25
add esp, 8
mov dword [ebp - 0x224], eax
test eax, eax
je 0x1003a010
push eax
push dword [ebp - 0x22c]
push esi
push dword [ebp - 0x230]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1003a002
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x100697e8
push dword [ebp - 0x224]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1003a002
push 0x208
lea eax, [ebp - 0x210]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test dword [ebp - 0x218], 0xfffffffc
jbe 0x10039ffd
nop
test edi, edi
je 0x10039eb5
xor eax, eax
cmp ax, word [edi]
jne 0x10039eb5
mov eax, dword [ebp - 0x220]
push 0x1006981c
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1000f290
add esp, 0x1c
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10039eb5
mov ecx, 0x7e
cmp dword [ebp - 0x214], ecx
cmovb ecx, dword [ebp - 0x214]
inc ecx
push ecx
push dword [ebp - 0x21c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test ebx, ebx
je 0x10039f4a
xor eax, eax
cmp ax, word [ebx]
jne 0x10039f4a
mov eax, dword [ebp - 0x220]
push 0x1006986c
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1000f290
add esp, 0x1c
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10039f4a
mov ecx, 0x7e
cmp dword [ebp - 0x214], ecx
cmovb ecx, dword [ebp - 0x214]
inc ecx
push ecx
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x10039feb
xor ecx, ecx
cmp cx, word [eax]
jne 0x10039feb
mov eax, dword [ebp - 0x220]
push 0x1006988c
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1000f290
add esp, 0x1c
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10039feb
mov eax, dword [ebp - 0x228]
mov ecx, 0x7e
cmp dword [ebp - 0x214], ecx
cmovb ecx, dword [ebp - 0x214]
inc ecx
push ecx
push dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x218]
inc esi
shr eax, 2
cmp esi, eax
jb 0x10039e20
mov esi, 1
push dword [ebp - 0x224]
call fcn.1005be17
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret