Function at 0x42add0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4fefd6
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x6503d0]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6503d0]
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.004ac972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42ae3d
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 0x42ae6e
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.004ac972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42aeaf
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 0x42affe
push esi
call fcn.004c6c5f
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x42af63
call fcn.004ac972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42aefc
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 0x42af31
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 0x42af5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42b05c
push edi
push esi
push ebx
lea ecx, [esp + 0xa4]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42aff1
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 0x42aff1
test dword [esp + 0x20], 0xfffffffc
jbe 0x42aff1
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 0x612940
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 0x42aff1
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401fc0
mov ebp, dword [esp + 0x28]
push edi
call fcn.004c7498
mov edi, dword [esp + 0x28]
add esp, 4
lea esi, [ebp - 0x10]
push esi
call fcn.004018d0
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 0x42b02f
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 0x42b05a
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.004c57d5
add esp, 0x29c
ret