Function at 0x41d410
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x507a16
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x65d4c0]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x2a4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2b4]
mov esi, dword [esp + 0x2b8]
xor ebx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ebx
call fcn.004b5c19
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41d47d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2ac], ebx
cmp esi, ebx
jmp 0x41d4b6
push esi
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
call fcn.004b5c19
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41d4f7
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x2ac], 1
cmp esi, ebx
jbe 0x41d646
push esi
call fcn.004cfac5
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x41d5ab
call fcn.004b5c19
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41d544
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x2ac], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d579
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d5a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x41d6a4
push edi
push esi
push ebx
lea ecx, [esp + 0xa4]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41d639
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41d639
test dword [esp + 0x20], 0xfffffffc
jbe 0x41d639
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x3c]
push 0x61cc58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41d639
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402c80
mov ebp, dword [esp + 0x28]
push edi
call fcn.004d05f3
mov edi, dword [esp + 0x28]
add esp, 4
lea esi, [ebp - 0x10]
push esi
call fcn.004018e0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x2ac], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41d677
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d6a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x2a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.004cead5
add esp, 0x29c
ret