Function at 0x42b750
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4f3d16
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x64222c]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64222c]
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.004a3062
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42b7bd
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
jne 0x42b7ee
push 0x208
lea ecx, [esp + 0x9c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x42b7fd
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.004a3062
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42b82f
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 0x42b97e
push esi
call fcn.004bb93f
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x42b8e3
call fcn.004a3062
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42b87c
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 0x42b8b1
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 0x42b8dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42b9dc
push edi
push esi
push ebx
lea ecx, [esp + 0xa4]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42b971
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 0x42b971
test dword [esp + 0x20], 0xfffffffc
jbe 0x42b971
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 0x606800
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 0x42b971
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402010
mov ebp, dword [esp + 0x28]
push edi
call fcn.004bc83d
mov edi, dword [esp + 0x28]
add esp, 4
lea esi, [ebp - 0x10]
push esi
call fcn.004018f0
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 0x42b9af
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 0x42b9da
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.004ba4b8
add esp, 0x29c
ret