Function at 0x10006870
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100321a6
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x1006200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x10006d99
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
movq qword [ebp - 0x9c], xmm0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
cmp edi, 0x7fffffff
ja 0x10006e22
cmp edi, 0x1000
jb 0x10006946
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x10006e27
push eax
call fcn.10015c6b
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10006e2c
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1000694f
push edi
call fcn.10015c6b
add esp, 4
push edi
lea esi, [eax + edi]
mov dword [ebp - 0x9c], eax
push 0
push eax
mov dword [ebp - 0x94], esi
call fcn.10017ea0
add esp, 0xc
mov dword [ebp - 0x98], esi
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push dword [ebp - 0x9c]
cmp dword [ebp + 0x1c], 8
push edi
cmovae eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10006cfd
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
push 0x1005b754
push dword [ebp - 0x9c]
call esi
test eax, eax
je 0x10006c61
test dword [ebp - 0xa0], 0xfffffffc
jbe 0x10006c0c
mov ecx, dword [ebp - 0xa8]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x1005b788
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.100067f0
mov edi, eax
add esp, 0x14
test edi, edi
js 0x10006b78
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xac], 0
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x9c]
call esi
test eax, eax
je 0x10006ae0
push dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
mov ecx, esi
call fcn.10009d30
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x10006aa3
mov edx, dword [ebp - 0x94]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10006a7b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006e2c
push edx
push ecx
call fcn.1001629e
add esp, 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x10006e05
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006dfb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006e2c
jmp 0x10006dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1005b7dc
lea ecx, [ebp - 0xcc]
mov esi, eax
call fcn.10009d30
push esi
sub esp, 0xc
mov byte [ebp - 4], 2
mov ecx, esp
lea eax, [ebp - 0xb4]
lea edi, [ebp - 0xcc]
push ecx
push eax
push edi
call fcn.100097e0
mov esi, dword [ebp - 0xb0]
xor edx, edx
mov ecx, esi
call fcn.100053c0
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, edi
push fcn.10009cd0
push 1
push 0x18
push eax
call fcn.10015e6f
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x10006aa3
mov ecx, dword [ebp - 0x94]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10006b71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006e2c
push ecx
push edx
jmp 0x10006a7d
push 0x1005b808
lea ecx, [ebp - 0xcc]
call fcn.10009d30
push edi
sub esp, 0xc
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp - 0xb4]
lea esi, [ebp - 0xcc]
push ecx
push eax
push esi
call fcn.100097e0
mov esi, dword [ebp - 0xb0]
xor edx, edx
mov ecx, esi
call fcn.100053c0
add esp, 0x10
mov byte [ebp - 4], 1
lea eax, [ebp - 0xcc]
push fcn.10009cd0
push 1
push 0x18
push eax
call fcn.10015e6f
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x10006aa3
mov ecx, dword [ebp - 0x94]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10006b71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006e2c
push ecx
push edx
jmp 0x10006a7d
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x10006c4a
mov edx, dword [ebp - 0x94]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10006c40
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006e2c
push edx
push ecx
call fcn.1001629e
add esp, 8
mov esi, dword [ebp - 0xb0]
mov ecx, esi
push 0x1005b4f0
call fcn.10009d30
jmp 0x10006aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1005b7dc
lea ecx, [ebp - 0xcc]
mov esi, eax
call fcn.10009d30
push esi
sub esp, 0xc
mov byte [ebp - 4], 4
mov ecx, esp
lea eax, [ebp - 0xb4]
lea edi, [ebp - 0xcc]
push ecx
push eax
push edi
call fcn.100097e0
mov esi, dword [ebp - 0xb0]
xor edx, edx
mov ecx, esi
call fcn.100053c0
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, edi
push fcn.10009cd0
push 1
push 0x18
push eax
call fcn.10015e6f
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x10006aa3
mov ecx, dword [ebp - 0x94]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10006b71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006e2c
push ecx
push edx
jmp 0x10006a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1005b838
lea ecx, [ebp - 0xcc]
mov esi, eax
call fcn.10009d30
push esi
sub esp, 0xc
mov byte [ebp - 4], 5
mov ecx, esp
lea eax, [ebp - 0xb4]
lea edi, [ebp - 0xcc]
push ecx
push eax
push edi
call fcn.100097e0
mov esi, dword [ebp - 0xb0]
xor edx, edx
mov ecx, esi
call fcn.100053c0
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, edi
push fcn.10009cd0
push 1
push 0x18
push eax
call fcn.10015e6f
mov edx, dword [ebp - 0x9c]
test edx, edx
je 0x10006aa3
mov ecx, dword [ebp - 0x94]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10006b71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006e2c
push ecx
push edx
jmp 0x10006a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1005b86c
lea ecx, [ebp - 0xcc]
mov esi, eax
call fcn.10009d30
push esi
sub esp, 0xc
mov byte [ebp - 4], 6
mov ecx, esp
lea eax, [ebp - 0xb4]
lea edi, [ebp - 0xcc]
push ecx
push eax
push edi
call fcn.100097e0
mov esi, dword [ebp - 0xb0]
xor edx, edx
mov ecx, esi
call fcn.100053c0
add esp, 0x10
mov byte [ebp - 4], 0
mov eax, edi
push fcn.10009cd0
push 1
push 0x18
push eax
call fcn.10015e6f
jmp 0x10006aa3
push ecx
push edx
call fcn.1001629e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015c58
mov esp, ebp
pop ebp
ret
call fcn.1000a0c0
call fcn.10001d40
call fcn.1001f5cf
int3