Function at 0x10014370
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060311
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x1007f070]
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
mov edi, ecx
mov dword [ebp - 0x224], edi
push str.0.0.0.0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x224], 0
call fcn.100173e0
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or esi, 0xffffffff
test eax, eax
je 0x10014549
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.100175b0
mov byte [ebp - 4], 1
push 0x5c
push dword [ebp - 0x220]
call fcn.1003a90b
add esp, 8
test eax, eax
jne 0x10014428
or eax, esi
jmp 0x10014430
sub eax, dword [ebp - 0x220]
sar eax, 1
inc eax
lea ecx, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10017490
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.100177e0
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10014475
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [ebp - 0x220]
call fcn.10017500
push 0
push dword [ebp - 0x220]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x10014525
push esi
call fcn.10038878
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10014525
push ebx
push esi
push 0
push dword [ebp - 0x220]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1001451c
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 0
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x228], 0
push eax
push 0x10072fb4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1001451c
mov eax, dword [ebp - 0x22c]
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x224]
push str._d._d._d._d
push eax
call fcn.100180a0
add esp, 0x18
push ebx
call fcn.10037fb2
add esp, 4
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x220]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10014549
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
cmp dword [edx - 4], 1
jle 0x10014569
push dword [edx - 0xc]
lea ecx, [ebp - 0x224]
call fcn.10017750
mov edx, dword [ebp - 0x224]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x10014581
mov eax, dword [edi]
jmp 0x10014583
mov eax, edi
mov byte [eax], 0
cmp byte [edx], 0
jne 0x1001458f
xor ecx, ecx
jmp 0x1001459d
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014594
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.1000e0a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100145c8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10037fa1
mov esp, ebp
pop ebp
ret