Function at 0x40f8e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447d10
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x45b4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021d0
add eax, 0x10
mov dword [ebp - 0x14], eax
push ecx
push 0x453984
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004048e0
mov edi, dword [ebp - 0x14]
mov esi, dword [edi - 0xc]
test esi, esi
jns 0x40f94b
push 0x80070057
call fcn.00402ba0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x40f968
push esi
lea ecx, [ebp - 0x14]
call fcn.00402b10
mov edi, dword [ebp - 0x14]
lea eax, [esi + 1]
push eax
push edi
call fcn.0042e340
add esp, 8
cmp esi, dword [edi - 8]
jg 0x40f941
mov dword [edi - 0xc], esi
xor eax, eax
mov word [edi + esi*2], ax
or esi, 0xffffffff
cmp dword [edi - 0xc], eax
jl 0x40f9ad
push 0x453988
push edi
call fcn.0042de8b
add esp, 8
test eax, eax
je 0x40f9ad
sub eax, edi
sar eax, 1
cmp eax, esi
je 0x40f9ad
lea ebx, [esi + 2]
jmp 0x40fdab
push 0x4516a0
lea ecx, [ebp - 0x10]
call fcn.00404820
mov eax, dword [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ebx, dword [ebx + 0x10]
mov ecx, dword [eax + 8]
sub ecx, 0x10
call fcn.004021d0
add eax, 0x10
lea ecx, [ebp - 0x40]
mov edx, ebx
mov dword [esi], eax
call fcn.00413290
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [eax + 0xc]
sub ecx, 0x10
call fcn.004021d0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x34]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fa1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx - 0xc], 3
jle 0x40fb4c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push ebx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.0041661d
add esp, 4
mov dword [ebp - 0x28], eax
push eax
push esi
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40fadc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4539b4
push dword [ebp - 0x28]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40fadc
push 0x10
call fcn.0041661d
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x24]
movzx esi, word [ecx + 0xa]
mov dword [eax], esi
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x18]
movzx ecx, word [ecx + 0xe]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x10]
push str._d._d._d._d
push eax
call fcn.004105e0
push edi
call fcn.0042dd04
mov edi, dword [ebp - 0x14]
add esp, 0x1c
push dword [ebp - 0x28]
call fcn.0042dd04
add esp, 4
jmp 0x40fbb8
mov edx, dword [0x45e9e4]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x40fb3f
cmp dword [esi + 0xc], 0
jl 0x40fb33
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40fb33
call fcn.004021d0
mov dword [ebp - 0x24], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fb1d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x10], eax
call fcn.0042dd04
add esp, 4
jmp 0x40fbb8
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004097f0
push dword [ebp - 0x28]
call fcn.0042dd04
add esp, 4
jmp 0x40fbb8
mov edx, dword [0x45e9e0]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x2c], ecx
lea eax, [edx - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], ecx
cmp eax, ecx
je 0x40fbb8
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x14]
jl 0x40fbac
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40fbac
mov ecx, dword [ebp - 0x2c]
call fcn.004021d0
mov dword [ebp - 0x2c], eax
mov ecx, esi
mov eax, dword [ebp - 0x28]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fba1
mov esi, dword [ebp - 0x24]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x40fbb8
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004097f0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021d0
add eax, 0x10
mov dword [ebp - 0x28], eax
push ecx
push 0x453984
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004048e0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add eax, 0xd0
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
lea edx, [esi - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], ecx
cmp edx, ecx
je 0x40fc53
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
jl 0x40fc48
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40fc45
mov ecx, edx
call fcn.004021d0
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x2c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fc34
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx + 0xd0], eax
jmp 0x40fc53
mov eax, dword [ebp - 0x20]
push dword [esi - 0xc]
mov ecx, eax
push esi
call fcn.004097f0
test esi, esi
je 0x40fc78
cmp dword [edi - 0xc], 0
jl 0x40fc9d
push esi
push edi
call fcn.0042de8b
add esp, 8
test eax, eax
je 0x40fc78
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40fd44
cmp dword [edi - 0xc], 0
jl 0x40fc9d
push 0x4539a8
push edi
call fcn.0042de8b
add esp, 8
test eax, eax
je 0x40fc9d
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40fd44
cmp dword [ebp + 0xc], 0
jne 0x40fd44
lea ecx, [ebp + 0xc]
call fcn.0040ab70
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 7
push eax
mov edx, 0x4539b0
lea ecx, [ebp - 0x2c]
call fcn.00403de0
add esp, 4
mov byte [ebp - 4], 8
push dword [eax]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push dword [0x45e9dc]
push eax
call fcn.004105e0
mov byte [ebp - 4], 7
add esp, 0x10
mov edx, dword [ebp - 0x2c]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push 0x34
push dword [0x45e9b0]
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor edx, edx
mov byte [ebp - 4], 6
cmp eax, 6
sete dl
mov dword [ebp + 0xc], edx
lea edx, [esi - 0x10]
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40fd4e
mov dword [ebp + 0xc], 1
or esi, 0xffffffff
mov byte [ebp - 4], 5
mov ecx, esi
mov edx, dword [ebp - 0x18]
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd88
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fda8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fdc8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40fde9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8