Function at 0x40d440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444e10
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4574b8]
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.00401240
add eax, 0x10
mov dword [ebp - 0x14], eax
push ecx
push 0x4502dc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403850
mov edi, dword [ebp - 0x14]
mov esi, dword [edi - 0xc]
test esi, esi
jns 0x40d4ab
push 0x80070057
call fcn.004019f0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x40d4c8
push esi
lea ecx, [ebp - 0x14]
call fcn.00401960
mov edi, dword [ebp - 0x14]
lea eax, [esi + 1]
push eax
push edi
call fcn.0042c300
add esp, 8
cmp esi, dword [edi - 8]
jg 0x40d4a1
mov dword [edi - 0xc], esi
xor eax, eax
mov word [edi + esi*2], ax
or esi, 0xffffffff
cmp dword [edi - 0xc], eax
jl 0x40d50c
push 0x4502e0
push edi
call fcn.0042be4b
add esp, 8
test eax, eax
je 0x40d50c
sub eax, edi
sar eax, 1
cmp eax, esi
je 0x40d50c
mov bl, 1
jmp 0x40d905
push 0x44e638
lea ecx, [ebp - 0x10]
call fcn.00403790
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.00401240
add eax, 0x10
lea ecx, [ebp - 0x40]
mov edx, ebx
mov dword [esi], eax
call fcn.00411500
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [eax + 0xc]
sub ecx, 0x10
call fcn.00401240
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 0x40d57b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx - 0xc], 3
jle 0x40d6ab
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.0041465d
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 0x40d63b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x45030c
push dword [ebp - 0x28]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40d63b
push 0x10
call fcn.0041465d
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.0040e560
push edi
call fcn.0042bcc4
mov edi, dword [ebp - 0x14]
add esp, 0x1c
push dword [ebp - 0x28]
call fcn.0042bcc4
add esp, 4
jmp 0x40d717
mov edx, dword [0x45a8c4]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x40d69e
cmp dword [esi + 0xc], 0
jl 0x40d692
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40d692
call fcn.00401240
mov dword [ebp - 0x24], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d67c
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.0042bcc4
add esp, 4
jmp 0x40d717
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00408760
push dword [ebp - 0x28]
call fcn.0042bcc4
add esp, 4
jmp 0x40d717
mov edx, dword [0x45a8c0]
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 0x40d717
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x14]
jl 0x40d70b
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40d70b
mov ecx, dword [ebp - 0x2c]
call fcn.00401240
mov dword [ebp - 0x2c], eax
mov ecx, esi
mov eax, dword [ebp - 0x28]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d700
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 0x40d717
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00408760
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401240
add eax, 0x10
mov dword [ebp - 0x28], eax
push ecx
push 0x4502dc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00403850
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add eax, 0xd4
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 0x40d7b2
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
jl 0x40d7a7
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40d7a4
mov ecx, edx
call fcn.00401240
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x2c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d793
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 + 0xd4], eax
jmp 0x40d7b2
mov eax, dword [ebp - 0x20]
push dword [esi - 0xc]
mov ecx, eax
push esi
call fcn.00408760
test esi, esi
je 0x40d7d7
cmp dword [edi - 0xc], 0
jl 0x40d7fc
push esi
push edi
call fcn.0042be4b
add esp, 8
test eax, eax
je 0x40d7d7
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d8a1
cmp dword [edi - 0xc], 0
jl 0x40d7fc
push 0x450300
push edi
call fcn.0042be4b
add esp, 8
test eax, eax
je 0x40d7fc
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d8a1
cmp byte [ebp + 0xc], 0
jne 0x40d8a1
lea ecx, [ebp + 0xc]
call fcn.00409ad0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 7
push eax
mov edx, 0x450308
lea ecx, [ebp - 0x2c]
call fcn.00402d40
add esp, 4
mov byte [ebp - 4], 8
push dword [eax]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push dword [0x45a8bc]
push eax
call fcn.0040e560
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 0x40d862
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push 0x34
push dword [0x45a890]
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
mov byte [ebp - 4], 6
lea edx, [esi - 0x10]
sete al
or esi, 0xffffffff
mov byte [ebp + 0xf], al
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d8a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d8a8
mov byte [ebp + 0xf], 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 0x40d8c5
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 0x40d8e2
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 0x40d902
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, byte [ebp + 0xf]
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 0x40d922
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 0x40d943
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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