Function at 0x427300
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba885
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4f6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040c920
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
jle 0x42735d
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040b520
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4274ef
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00427560
test al, al
jne 0x427387
mov edi, dword [ebp - 0x1c]
jmp 0x4274ef
cmp dword [esi - 4], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
jle 0x4273a4
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040b520
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
push edi
push ebx
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4274ef
call fcn.0040b040
mov dword [ebp - 0x14], eax
test eax, eax
je 0x427547
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [0x4c83a0]
mov ecx, dword [ebp - 0x14]
call ebx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x4d8200
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42740f
cmp dword [ebp - 0x24], 0
je 0x42740f
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
jmp 0x427419
mov ecx, 0x409
mov eax, 0x4e2
push 0x4d742c
push eax
push ecx
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00408e20
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp dword [eax - 4], 1
jle 0x427448
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040b520
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4274c0
cmp dword [ebp - 0x2c], 0
je 0x4274c0
mov edx, dword [ebp - 0x30]
test edx, edx
jne 0x42746d
xor ecx, ecx
jmp 0x427481
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427472
sub ecx, ebx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x34]
push edx
call fcn.0040b720
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4274ba
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
push ecx
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x4c83a0]
mov ecx, dword [ebp - 0x34]
call ebx
mov byte [ebp - 0xd], 1
jmp 0x4274f3
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4274ef
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
push ecx
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x4c83a0]
mov ecx, dword [ebp - 0x34]
call ebx
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42751b
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, ebx
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00486d53
mov al, byte [ebp - 0xd]
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b700
int3