Function at 0x42a400
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4f7df6
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x646274]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x646274]
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.004a72ba
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42a46d
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 0x42a49e
push 0x208
lea ecx, [esp + 0x9c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x42a4ad
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.004a72ba
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42a4df
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 0x42a62e
push esi
call fcn.004bfb8f
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x42a593
call fcn.004a72ba
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42a52c
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 0x42a561
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 0x42a58c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42a68c
push edi
push esi
push ebx
lea ecx, [esp + 0xa4]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42a621
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 0x42a621
test dword [esp + 0x20], 0xfffffffc
jbe 0x42a621
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 0x60a828
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 0x42a621
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402030
mov ebp, dword [esp + 0x28]
push edi
call fcn.004c0a8d
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 0x42a65f
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 0x42a68a
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.004be710
add esp, 0x29c
ret