Function at 0x10049ac0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c9bc1
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x10112840]
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 esi, edx
mov ebx, ecx
cmp dword [esi + 0x14], 8
jb 0x10049afc
mov eax, dword [esi]
jmp 0x10049afe
mov eax, esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x10049b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x5c]
call fcn.10042b30
mov esi, eax
mov dword [ebp - 4], edi
call fcn.10049d60
push eax
lea ecx, [ebp - 0xf8]
call fcn.10007bc0
mov byte [ebp - 4], 1
mov edx, esi
mov ecx, eax
call fcn.10011430
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.10047e10
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.10007d50
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x10049b67
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
call fcn.1009dec8
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], vtable.message_exception.0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push 0x1010fe2c
push eax
call fcn.100a3b3b
mov edx, edi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.1004c6b0
mov dword [ebp - 4], 4
cmp dword [esi + 0x14], 8
jb 0x10049bb5
mov eax, dword [esi]
jmp 0x10049bb7
mov eax, esi
push dword [ebp - 0x14]
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10049c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call fcn.10042b30
mov esi, eax
mov byte [ebp - 4], 5
call fcn.10049df0
push eax
lea ecx, [ebp - 0xf8]
call fcn.10007bc0
mov byte [ebp - 4], 6
mov edx, esi
mov ecx, eax
call fcn.10011430
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.10047e10
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.10007d50
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x10049c23
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
call fcn.1009dec8
mov byte [ebp - 4], 8
mov dword [ebp - 0x2c], vtable.message_exception.0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2c]
push 0x1010fe2c
push eax
call fcn.100a3b3b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x100eb3d4
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x10049cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call fcn.10042b30
mov esi, eax
mov byte [ebp - 4], 9
call fcn.10049e80
push eax
lea ecx, [ebp - 0xf8]
call fcn.10007bc0
mov byte [ebp - 4], 0xa
mov edx, esi
mov ecx, eax
call fcn.10011430
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.10047e10
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.10007d50
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x10049cd2
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
call fcn.1009dec8
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x2c], vtable.message_exception.0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2c]
push 0x1010fe2c
push eax
call fcn.100a3b3b
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 0x16]
movzx esi, word [eax + 0x10]
movzx edi, word [eax + 0x12]
mov eax, ecx
mov dword [ebx], eax
mov eax, edx
mov dword [ebx + 4], eax
mov eax, esi
mov dword [ebx + 8], eax
mov eax, edi
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10049d3b
push ecx
call fcn.1009e006
add esp, 4
mov eax, ebx
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.1009eefe
mov esp, ebp
pop ebp
ret