Function at 0x40d9b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4409a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x44fb90]
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.004023d0
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x447808
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402b20
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebx - 0xc]
test esi, esi
jns 0x40da16
push 0x80070057
call fcn.00407bb0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40da34
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.00407ad0
mov ebx, dword [ebp - 0x18]
lea ecx, [esi + 1]
push ecx
push ebx
call fcn.00429df1
add esp, 8
cmp esi, dword [ebx - 8]
jg 0x40da0c
xor edx, edx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], dx
mov eax, dword [ebx - 0xc]
test eax, eax
js 0x40dad0
push 0x44780c
push ebx
call fcn.00429b47
add esp, 8
test eax, eax
je 0x40dad0
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40dad0
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 0x40da91
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 0x40dab7
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, 0x445b68
call fcn.00402a70
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.004023d0
add eax, 0x10
mov ecx, esi
lea esi, [ebp - 0x3c]
mov dword [edi], eax
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [eax + 0xc]
sub eax, 0x10
call fcn.004023d0
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 0x40db43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 3
jle 0x40dc17
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.00415364
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 0x40dbff
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x447814
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40dbff
push 0x10
call fcn.00415364
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 0x447818
lea edi, [ebp - 0x14]
call fcn.0040ee30
add esp, 0x14
push esi
call fcn.00429751
mov esi, dword [ebp - 0x2c]
add esp, 4
push esi
call fcn.00429751
add esp, 4
jmp 0x40dc24
mov eax, 0x452870
lea edi, [ebp - 0x14]
call fcn.0040b320
push esi
call fcn.00429751
add esp, 4
jmp 0x40dc24
mov eax, 0x45286c
lea edi, [ebp - 0x14]
call fcn.0040b320
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004023d0
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x447808
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 6
call fcn.00402b20
mov edi, dword [ebp + 8]
add edi, 0xb4
lea eax, [ebp - 0x1c]
call fcn.0040b320
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x40dc80
cmp dword [ebx - 0xc], 0
jl 0x40dca5
push esi
push ebx
call fcn.00429b47
add esp, 8
test eax, eax
je 0x40dc80
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40de1d
cmp dword [ebx - 0xc], 0
jl 0x40dca5
push 0x447830
push ebx
call fcn.00429b47
add esp, 8
test eax, eax
je 0x40dca5
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40de1d
cmp dword [ebp + 0x10], 0
jne 0x40de1d
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 0x447838
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401fc0
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x452868]
push edx
push eax
push ecx
lea edi, [ebp + 8]
call fcn.0040ee30
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 0x40dd1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x45283c]
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 0x40dd5a
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 0x40dd7a
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 0x40dd9d
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 0x40ddc0
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 0x40dde0
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 0x40de06
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 0x40de3d
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 0x40de60
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 0x40de83
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 0x40da91
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x40da91