Function at 0x40cec0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440150
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x44db90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402210
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x445ee4
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402960
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebx - 0xc]
test esi, esi
jns 0x40cf26
push 0x80070057
call fcn.004079e0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40cf44
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.00407900
mov ebx, dword [ebp - 0x18]
lea ecx, [esi + 1]
push ecx
push ebx
call fcn.004296b1
add esp, 8
cmp esi, dword [ebx - 8]
jg 0x40cf1c
xor edx, edx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], dx
mov eax, dword [ebx - 0xc]
test eax, eax
js 0x40cfe0
push 0x445ee8
push ebx
call fcn.00429407
add esp, 8
test eax, eax
je 0x40cfe0
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40cfe0
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cfa1
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x444b60
call fcn.004028b0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x10]
push ecx
sub eax, 0x10
mov dword [ebp - 0x2c], esp
mov edi, esp
call fcn.00402210
add eax, 0x10
mov ecx, esi
lea esi, [ebp - 0x3c]
mov dword [edi], eax
call fcn.00411820
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [eax + 0xc]
sub eax, 0x10
call fcn.00402210
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 3
jle 0x40d127
lea ecx, [ebp - 0x24]
xor eax, eax
push ecx
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
push edi
call fcn.00414c24
mov edx, dword [ebp - 0x24]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x20]
push esi
push edi
push edx
push eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40d10f
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x445fa0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40d10f
push 0x10
call fcn.00414c24
mov esi, eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 8]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0xe]
mov dword [esi + 8], edx
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
add esp, 4
push eax
push edx
mov edx, dword [esi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push edx
push eax
push str._d._d._d._d
lea edi, [ebp - 0x14]
call fcn.0040e400
add esp, 0x14
push esi
call fcn.00429011
mov esi, dword [ebp - 0x2c]
add esp, 4
push esi
call fcn.00429011
add esp, 4
jmp 0x40d134
mov eax, 0x45086c
lea edi, [ebp - 0x14]
call fcn.0040ae20
push esi
call fcn.00429011
add esp, 4
jmp 0x40d134
mov eax, 0x450868
lea edi, [ebp - 0x14]
call fcn.0040ae20
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402210
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x445ee4
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 6
call fcn.00402960
mov edi, dword [ebp + 8]
add edi, 0xb4
lea eax, [ebp - 0x1c]
call fcn.0040ae20
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x40d190
cmp dword [ebx - 0xc], 0
jl 0x40d1b5
push esi
push ebx
call fcn.00429407
add esp, 8
test eax, eax
je 0x40d190
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d32d
cmp dword [ebx - 0xc], 0
jl 0x40d1b5
push 0x445f08
push ebx
call fcn.00429407
add esp, 8
test eax, eax
je 0x40d1b5
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d32d
cmp dword [ebp + 0x10], 0
jne 0x40d32d
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp + 0x10]
push 0x445f10
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401df0
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x450864]
push edx
push eax
push ecx
lea edi, [ebp + 8]
call fcn.0040e400
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d22a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x45083c]
mov edi, dword [ebp + 8]
push 0x34
push ecx
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor edx, edx
cmp eax, 6
sete dl
lea eax, [edi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
mov dword [ebp + 8], edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d26a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d28a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2f0
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d316
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d34d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d393
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfa1
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40cfa1