Function at 0x40e620
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x446f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x45b684]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
push 0x44f0bc
lea ecx, [esp + 0x18]
mov dword [esp + 0x1d0], 1
call fcn.00401310
mov byte [esp + 0x1cc], 2
mov ebp, dword [esp + 0x1d4]
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40e735
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401260
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1d0], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x1cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1cc], 0xffffffff
mov eax, dword [esp + 0x1d8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e72e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40e8b4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f0b9
add esp, 4
mov edi, eax
push edi
push esi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0x450048
push edi
mov dword [esp + 0x34], ebx
call sub.VERSION.dll_VerQueryValueW
lea edx, [esp + 0x20]
push str.StringFileInfo_04x_04x_
push edx
lea ecx, [esp + 0x1e0]
call fcn.0040bd00
mov ecx, dword [esp + 0x34]
movzx edx, word [ecx + 2]
movzx ecx, word [ecx]
mov eax, dword [eax]
push edx
push ecx
push eax
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueW
cmp dword [esp + 0x18], ebx
je 0x40e81a
mov esi, dword [esp + 0x1c]
cmp esi, ebx
jne 0x40e7f5
xor eax, eax
jmp 0x40e80f
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e800
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401700
push edi
call fcn.0040f0be
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00401260
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x1d4], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x1cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e884
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1cc], 0xffffffff
mov eax, dword [esp + 0x1d8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e8b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.0042c712
add esp, 0x1bc
ret