Function at 0x1012f87
Capabilities:
Persist via ginadll registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
inc ebx
cmp dword [0x10166fc], 0
push edi
jne 0x1012fca
mov esi, dword [0x1001190]
mov edi, 0x1016660
push edi
mov dword [0x10166fc], ebx
mov dword [0x1016660], 0x9c
call esi
test eax, eax
jne 0x1012fca
push edi
mov dword [0x1016660], 0x94
call esi
mov eax, dword [0x1016664]
mov esi, dword [ebp + 8]
mov ecx, dword [0x1016668]
push 5
pop edx
cmp eax, edx
jne 0x1013010
test ecx, ecx
jne 0x1013010
cmp esi, 0x15
jne 0x1013010
cmp byte [0x10166fa], 3
jne case.0x1013015.37
mov eax, dword [0x10166f8]
test al, 2
je case.0x1013015.37
test ah, 4
je case.0x1013015.37
test al, al
jns 0x101333a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp esi, 0x26
ja case.0x1013015.37
jmp dword [esi*4 + 0x1013374]
push 0x1000
call dword [fcn.01001200]
jmp 0x1013009
test byte [0x10166f8], 0x10
je case.0x1013015.37
cmp eax, edx
jb case.0x1013015.37
jmp 0x101333a
mov eax, dword [0x10166f8]
test al, 0x10
je case.0x1013015.37
test ah, 1
jmp 0x1013334
mov eax, dword [0x10166f8]
test al, 0x10
je case.0x1013015.37
test ah, 1
je case.0x1013015.37
jmp 0x101333a
mov eax, dword [0x10166f8]
test ah, 1
je case.0x1013015.37
test al, 0x10
jmp 0x1013334
test word [0x10166f8], 0x110
je case.0x1013015.37
push 0x10025a0
push 0x1002564
push 0x100252c
push 0x80000002
jmp 0x10130d4
cmp byte [0x10166fa], bl
jne case.0x1013015.37
call fcn.01012de3
test eax, eax
jne case.0x1013015.37
push 0x1002524
mov edi, 0x100252c
push edi
mov esi, 0x80000002
push esi
call fcn.01012cbe
test eax, eax
jne case.0x1013015.37
push 0x1002518
push 0x1002564
push edi
push esi
call fcn.01012c0b
test eax, eax
jmp 0x1013058
call fcn.01012de3
jmp 0x1013009
cmp dword [0x1016670], 2
jne case.0x1013015.37
jmp 0x1013032
cmp byte [0x10166fa], bl
jne case.0x1013015.37
cmp eax, edx
jmp 0x1013334
mov cl, byte [0x10166fa]
cmp cl, 3
je 0x1013123
cmp cl, 2
jne case.0x1013015.37
cmp eax, edx
jmp 0x10132d8
mov cl, byte [0x10166fa]
cmp cl, 3
je 0x101313e
cmp cl, 2
jne case.0x1013015.37
cmp eax, edx
jmp 0x10132bb
mov cl, byte [0x10166fa]
cmp cl, 3
je 0x1013159
cmp cl, 2
jne case.0x1013015.37
test byte [0x10166f8], 0x82
jmp 0x1013102
mov eax, dword [0x10166f8]
and eax, 0x40
jmp 0x1013009
xor eax, eax
cmp dword [0x1016670], ebx
sete al
jmp 0x1013009
xor eax, eax
cmp dword [0x1016670], 2
jmp 0x1013177
cmp dword [0x1016670], ebx
jmp 0x101323d
cmp dword [0x1016670], ebx
jne case.0x1013015.37
cmp eax, 4
jne case.0x1013015.37
test ecx, ecx
jne case.0x1013015.37
cmp word [0x101666c], 0x3b6
jmp 0x1013334
cmp dword [0x1016670], ebx
jne case.0x1013015.37
cmp eax, 4
ja 0x101333a
jne case.0x1013015.37
cmp ecx, 0xa
jmp 0x1013034
cmp dword [0x1016670], ebx
jne case.0x1013015.37
cmp eax, 4
jne case.0x1013015.37
cmp ecx, 0xa
jne case.0x1013015.37
cmp word [0x101666c], 0x7ce
jmp 0x1013334
cmp dword [0x1016670], ebx
jne case.0x1013015.37
cmp eax, 4
jne 0x101322b
cmp ecx, 0x5a
jae 0x101333a
cmp eax, eax
jbe case.0x1013015.37
jmp 0x101333a
cmp dword [0x1016670], 2
jne case.0x1013015.37
cmp eax, 4
jmp 0x1013034
cmp dword [0x1016670], 2
jne case.0x1013015.37
cmp eax, edx
ja 0x101333a
jne case.0x1013015.37
test ecx, ecx
ja 0x101333a
jne case.0x1013015.37
cmp word [0x101666c], 0x893
jmp 0x101322b
cmp dword [0x1016670], 2
jne case.0x1013015.37
test byte [0x10166f9], 2
jmp 0x1013058
cmp dword [0x1016670], 2
jne case.0x1013015.37
cmp byte [0x10166fa], bl
jmp 0x1013334
mov al, byte [0x10166fa]
cmp al, 3
je 0x10132c1
cmp al, 2
jne case.0x1013015.37
test byte [0x10166f8], 0x80
jmp 0x1013058
mov al, byte [0x10166fa]
cmp al, 3
je 0x10132de
cmp al, 2
jne case.0x1013015.37
mov al, byte [0x10166f8]
test al, 2
jmp 0x1012ffd
mov al, byte [0x10166fa]
cmp al, 3
je 0x10132fb
cmp al, 2
jne case.0x1013015.37
mov eax, dword [0x10166f8]
test al, 0xa2
jne case.0x1013015.37
test ah, 4
jmp 0x1013334
mov eax, dword [0x10166f8]
and eax, 0x400
jmp 0x1013009
mov eax, dword [0x10166f8]
and eax, 0x20
jmp 0x1013009
mov al, byte [0x10166fa]
cmp al, 3
je 0x101333a
cmp al, 2
jne case.0x1013015.37
mov eax, ebx
jmp 0x1013009
call fcn.01012e41
jmp 0x1013009
push 0x56
jmp 0x1013021
push 0x57
jmp 0x1013021
call fcn.01012efc
jmp 0x1013009
push 0x58
jmp 0x1013021
call fcn.01012ea0
jmp 0x1013009