Function at 0x40ff30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbe10
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x669404]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x144], eax
mov byte [ebp - 0x129], bl
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x140], ebx
jb 0x40ff93
mov eax, dword [esi]
jmp 0x40ff95
mov eax, esi
lea ecx, [ebp - 0x13c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x41020e
push edi
call fcn.00543310
add esp, 4
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x134], eax
jb 0x40ffc4
mov esi, dword [esi]
mov edx, dword [ebp - 0x13c]
push eax
push edi
push edx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4101f6
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x140]
push ecx
push 0x6135f4
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4101f6
cmp dword [ebp - 0x138], ebx
je 0x4101f6
mov eax, dword [ebp - 0x140]
cmp dword [eax], 0xfeef04bd
jne 0x4101f6
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
mov dword [ebp - 0x150], ecx
movzx ecx, word [eax + 0xe]
mov dword [ebp - 0x154], edx
movzx edx, word [eax + 0xc]
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x14c], ecx
push eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x148], edx
call fcn.00416380
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x80]
mov esi, 1
push ecx
mov edx, 0x6135f8
mov dword [ebp - 0x130], esi
call fcn.004164a0
mov edi, eax
mov dword [ebp - 4], esi
lea edx, [ebp - 0x10c]
mov ebx, 3
push edx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x130], ebx
call fcn.00416380
mov esi, eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x154]
call fcn.00416380
mov ebx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x150]
call fcn.00416380
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x9c]
push edx
mov edx, 0x6135f8
call fcn.00404910
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
push ecx
mov edx, ebx
mov ecx, eax
call fcn.004163e0
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0xf0]
push edx
mov edx, 0x6135f8
call fcn.00404910
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004163e0
mov bl, 9
mov byte [ebp - 4], bl
lea edx, [ebp - 0x2c]
push edx
mov edx, edi
mov ecx, eax
call fcn.004163e0
add esp, 0x34
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x144]
mov edi, eax
call fcn.00406850
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.004068c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.004068c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf0]
call fcn.004068c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.004068c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9c]
call fcn.004068c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4]
call fcn.004068c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.004068c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c]
call fcn.004068c0
mov dword [ebp - 4], 0
mov ebx, 3
mov dword [ebp - 0x130], ebx
and ebx, 0xfffffffd
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x130], ebx
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4101ef
and ebx, 0xfffffffe
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x130], ebx
call fcn.004068c0
mov byte [ebp - 0x129], 1
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov al, byte [ebp - 0x129]
add esp, 4
jmp 0x410210
mov al, bl
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.00546bdc
mov esp, ebp
pop ebp
ret