Function at 0x1e712450
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.1e70baa0
test eax, eax
je 0x1e71248b
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0x200
push ebx
add eax, 4
push eax
push ecx
call fcn.1e716ba0
jmp 0x1e712571
mov edx, dword [ebp + 0xc]
add edx, 0x128
mov eax, edx
xor esi, esi
cmp eax, edi
je 0x1e712507
mov cl, byte [eax]
test cl, cl
je 0x1e712507
cmp cl, 0x5c
jne 0x1e7124a9
mov esi, eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1e7124a2
cmp esi, edi
je 0x1e712507
mov bl, byte [esi]
push 0x5c
push edx
mov byte [esi], cl
call fcn.1e711da0
add esp, 8
test eax, eax
je 0x1e712505
mov eax, dword [ebp + 0x10]
mov ecx, esi
sub ecx, eax
mov edx, 0x200
lea edi, [ecx + 1]
jmp 0x1e7124e0
lea ecx, [edx + 0x7ffffdfe]
test ecx, ecx
je 0x1e7124fb
mov cl, byte [edi + eax]
test cl, cl
je 0x1e7124fb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x1e7124e0
jmp 0x1e7124ff
test edx, edx
jne 0x1e712500
dec eax
mov byte [eax], 0
xor edi, edi
mov byte [esi], bl
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
push edx
push 1
push edi
add eax, 0x13a
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1e71256e
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push ecx
push esi
lea edx, [ebp - 0x18]
push edx
push edi
push 0x1e6f3d54
push eax
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1e712560
push 0x1e6f3d4c
push 0x200
push esi
call fcn.1e712390
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
jmp 0x1e712571
mov ebx, dword [ebp + 0x10]
push 0x1e6f3a64
mov dword [ebx + 0x404], edi
mov dword [ebx + 0x400], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov edi, eax
call fcn.1e70baa0
test eax, eax
jne 0x1e7125d2
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1e6f3d3c
push edi
call ebx
mov esi, eax
test esi, esi
je 0x1e7125cf
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0xc], 0
je 0x1e7125cf
push 0x1e6f3d1c
push edi
call ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x1e7125cf
push 0
call eax
mov ebx, dword [ebp + 0x10]
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1e712670
push eax
call fcn.1e70a400
mov esi, eax
add esp, 4
test esi, esi
je 0x1e712670
mov eax, dword [ebp - 0x10]
push esi
push eax
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1e712620
mov eax, dword [ebp - 4]
test eax, eax
je 0x1e712610
push 1
call eax
push esi
call fcn.1e70a420
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x1e6f3d18
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1e712652
mov eax, dword [ebp - 4]
test eax, eax
je 0x1e712642
push 1
call eax
push esi
call fcn.1e70a420
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov dword [ebx + 0x404], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx + 0x400], edx
call fcn.1e70a420
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x1e71267b
push 1
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret