Function at 0x10085560
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x103ca0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, eax
cmp eax, 0x208
jae 0x100856ed
push esi
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x210]
push edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.10098806
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push dword [ebp - 0x210]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x100855fe
push edi
call fcn.100982b2
add esp, 4
mov eax, 0x15
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100980ed
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x103b9ffc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x214]
push edi
movzx esi, word [eax + 8]
movzx ebx, word [eax + 0xe]
call fcn.100982b2
movsx eax, si
add esp, 4
cmp eax, 5
ja case.default.0x10085650
jmp dword [eax*4 + 0x100856f4]
movsx eax, bx
add eax, 0xfffffff7
cmp eax, 0xb
ja case.0x10085662.20
jmp dword [eax*4 + 0x1008570c]
pop ebx
pop edi
mov eax, 0x13
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100980ed
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0x14
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100980ed
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0x15
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100980ed
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0x16
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100980ed
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0x17
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100980ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x1a
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.100980ed
mov esp, ebp
pop ebp
ret
call fcn.10098932
nop
push edi
push esi
or byte [eax], dl
stosd dword es:[edi], eax
push esi
or byte [eax], dl
stosd dword es:[edi], eax
push esi
or byte [eax], dl
rcl dword [esi + 8], 0x10
rcl dword [esi + 8], 0x10
rcl dword [esi + 8], 0x10
imul edx, dword [esi + 8], 0x8566910
adc byte [ecx + 86], ch
or byte [eax], dl
imul edx, dword [esi + 8], 0x8566910
adc byte [edi + 86], bh
or byte [eax], dl
jg 0x1008577c
or byte [eax], dl
jg 0x10085780
or byte [eax], dl
jg 0x10085784
or byte [eax], dl
jg 0x10085788
or byte [eax], dl
jg 0x1008578c
or byte [eax], dl
xchg ebp, eax
push esi
or byte [eax], dl
int3
int3
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6ca8
mov eax, dword fs:[0]
jmp [eax - 0x58]
or eax, 0xa16410
add byte [eax], al
add byte [eax - 0x7d], dl
in al, dx
push esp
add byte [eax], al
add byte [eax], al
push eax
sub esp, 0x54
mov eax, dword [0x103ca0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x10]
je 0x100857be
mov eax, 1
jmp 0x10085993
mov eax, dword [eax]
test eax, eax
je 0x10085991
push eax
lea ecx, [ebp - 0x28]
call fcn.10001830
push 0xa
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.100811d0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10085801
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001e00
mov edx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x44], edx
cmp esi, edx
je 0x1008595f
cmp dword [esi + 0x14], 0x10
jb 0x1008582e
mov ecx, dword [esi]
jmp 0x10085830
mov ecx, esi
mov edi, dword [esi + 0x10]
mov eax, 0xe
cmp edi, eax
mov edx, str.delay_ptttrue
cmovb eax, edi
push eax
call fcn.10002490
add esp, 4
test eax, eax
jne 0x1008585d
cmp edi, 0xe
jb 0x1008585d
ja 0x1008585d
mov byte [0x103cee57], 1
push 0xf
push 0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.1008aa50
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
lea ebx, [ecx + 0x10]
jb 0x10085879
mov ecx, dword [ecx]
mov ebx, dword [ebx]
mov eax, 0xf
cmp ebx, eax
mov edx, str.delay_ptt_msecs
cmovb eax, ebx
push eax
call fcn.10002490
mov edi, eax
add esp, 4
test edi, edi
jne 0x100858ae
cmp ebx, 0xf
jae 0x100858a3
or edi, 0xffffffff
jmp 0x100858ae
mov eax, 0xf
cmp eax, ebx
sbb edi, edi
neg edi
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x100858c3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10001e00
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test edi, edi
jne 0x1008594b
push 0x3d
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.100811d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx + 0x18]
call fcn.1007a700
mov dword [0x103cee74], eax
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x1008594b
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
push ecx
call fcn.1008fb10
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x50]
add esp, 8
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.1008cb60
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x58]
add esi, 0x18
mov dword [ebp - 0x44], edx
cmp esi, edx
jne 0x10085824
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x10085991
push dword [ebp - 0x44]
push ecx
mov ecx, esi
call fcn.1008fb10
mov ecx, dword [ebp - 0x54]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x5c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1008cb60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100980ed
mov esp, ebp
pop ebp
ret