Function at 0x411ff0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5850f6
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5eb770]
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
xor ebx, ebx
push ebx
mov esi, ecx
mov edi, edx
push str.Tool_GetFileVersion
push ebx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x134], edi
call fcn.0044ca70
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push edi
push esi
push str.lpszFile___s__lpszVersion___s__dwVersionLen___d__bDriver___d
lea edx, [ebp - 0x128]
push 1
push edx
mov dword [ebp - 4], ebx
call fcn.0044cd10
add esp, 0x1c
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x4120ac
push eax
push str.return___08x
push 2
lea ecx, [ebp - 0x128]
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x4122fc
lea edx, [edi + 0x64]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x4120d3
push eax
push str.return___08x
push 2
lea eax, [ebp - 0x128]
push eax
jmp 0x41208b
push eax
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4122c4
xor edi, edi
push pe_nt_image_headers32
lea ecx, [ebp - 0x110]
push edi
push ecx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], edi
call fcn.0055ca80
mov ecx, dword [ebp - 0x120]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x114]
push eax
push str.VarFileInfoTranslation
push ecx
call esi
cmp dword [ebp - 0x118], 4
jne 0x412164
mov eax, dword [ebp - 0x114]
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 3]
push edx
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
push ecx
push edx
push eax
lea ecx, [ebp - 0x110]
push str.StringFileInfo_02x_02x_02x_02x_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x412176
push str.StringFileInfo040904e4_
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5b8ab8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push ecx
call esi
cmp dword [ebp - 0x118], edi
je 0x4122c4
cmp dword [ebp + 0xc], 1
jne 0x4121e4
mov edx, dword [ebp - 0x114]
push 0x2e
push edx
call fcn.005571b9
add esp, 8
cmp eax, edi
je 0x4121e4
add eax, 2
push 0x2e
push eax
call fcn.005571b9
add esp, 8
cmp eax, edi
je 0x4121e4
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x11c]
call fcn.00404860
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x114]
mov eax, edi
xor esi, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412200
sub eax, edx
sar eax, 1
je 0x412263
mov bl, byte [edi + esi*2]
movzx edx, bl
push edx
mov byte [ebp - 0x12c], bl
call fcn.00558ef0
add esp, 4
test eax, eax
jne 0x41222f
cmp bl, 0x2e
jne 0x412241
mov eax, dword [ebp - 0x12c]
push eax
lea edi, [ebp - 0x11c]
call fcn.004187e0
mov edi, dword [ebp - 0x114]
mov eax, edi
inc esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412250
sub eax, edx
sar eax, 1
cmp esi, eax
jb 0x412211
mov esi, dword [ebp - 0x11c]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41228b
push 0
lea ecx, [ebp - 0x11c]
call fcn.00403a70
mov esi, dword [ebp - 0x11c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x134]
push esi
push ecx
push edx
call fcn.005579b2
lea eax, [esi - 0x10]
add esp, 0xc
mov ebx, 1
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push str.return___08x
lea edx, [ebp - 0x128]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret