Function at 0x2175432
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
sub esp, 0x98
push ebx
mov dword [ebp - 0x14], ecx
push esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x38]
mov edx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebx + 0x14], ecx
mov dword [eax + 4], edx
mov esi, dword [ebx + 0x3c]
mov dword [esi], edx
mov eax, dword [ebx + 0x40]
mov dword [eax], ecx
mov eax, dword [ebx + 0x40]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x68]
mov word [ebx + 0x78], cx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebx + 0x88], ecx
cmp dword [ebx + 0x48], ecx
jbe 0x2175499
xor eax, eax
mov edx, dword [ebx + 0x84]
inc ecx
mov dword [edx + eax], 0x80004005
add eax, 4
cmp dword [ebx + 0x48], ecx
ja 0x2175483
xor ecx, ecx
cmp dword [ebx + 0x44], ecx
jne 0x21754ab
mov eax, dword [ebx + 0x70]
mov dword [eax + 0x20], ecx
mov edx, dword [ebx + 0x6c]
mov dword [edx], ecx
cmp dword [ebx + 0x44], 0
jne 0x217551a
cmp dword [ebx + 0x18], 0
jne 0x217551a
push 1
push dword [ebx + 4]
call fcn.0217134e
mov dword [ebx + 8], eax
test eax, eax
jne 0x21754d2
mov eax, 0x80070005
jmp 0x2175a20
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
push 0
lea eax, [ebp - 8]
push 0
mov ecx, dword [0x218c85c]
push eax
push dword [ebx + 0x20]
call fcn.0217f3b7
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x2175592
push eax
call fcn.02181ed1
test eax, eax
je 0x21755bb
and byte [ebx + 0x2c], 0xef
jmp 0x21755bf
push dword [ebx]
call fcn.02181f27
test eax, eax
je 0x2175535
mov eax, dword [0x218c85c]
mov edi, 5
cmp dword [eax + 0x34], 0
je 0x2175537
xor edi, edi
xor esi, esi
test edi, edi
jne 0x217557f
lea eax, [ebx + 0xc]
push eax
push esi
push dword [ebx]
call fcn.02172c96
cmp eax, 5
mov edi, eax
jne 0x217556a
xor edi, edi
push str.SCM:Using_unsecure_activation_n
mov dword [ebx + 0x28], 0x21866e0
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], esi
jmp 0x217556f
push str.SCM:Using_secure_activation_n
call sub.ntdll.dll_DbgPrint
add esp, 4
test edi, edi
je 0x21754df
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
jmp 0x2175a20
xor eax, eax
cmp dword [ebx + 0x44], eax
jne 0x21755bf
cmp dword [ebp - 8], eax
je 0x21755bf
mov esi, dword [ebp - 8]
add esi, 0x38
test byte [esi], 1
jne 0x21755bb
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x3c], eax
jne 0x21755b6
call fcn.0217f013
test byte [esi], 2
je 0x21755bf
or byte [ebx + 0x2c], 0x10
cmp dword [ebp - 4], 0
jge 0x217574e
cmp dword [ebp - 4], 0x80040154
jne 0x21759c7
cmp dword [ebx + 0x44], 0
jne 0x21759c7
lea edi, [ebp - 0x30]
mov esi, dword [ebx + 0x20]
mov dword [ebp - 0x34], 0x2187480
lea eax, [ebp - 4]
lea ecx, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x98]
call fcn.0217e8ac
cmp dword [ebx + 0x24], 0
je 0x217561c
push ebx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x98]
call fcn.0217ed9e
jmp 0x2175636
test byte [ebx + 0x2c], 0x10
je 0x2175641
push ebx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x98]
or byte [ebp - 0x60], 1
call fcn.02174fb0
test eax, eax
jne 0x2175641
mov dword [ebp - 4], 0x80040154
cmp dword [ebp - 4], 0
jne 0x2175652
push 1
push ebx
call fcn.021750a1
mov dword [ebp - 4], eax
mov dword [ebp - 0x98], 0x218747c
cmp dword [ebp - 0x58], 0
je 0x217566b
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], 0
je 0x2175682
push dword [ebp - 0x6c]
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x80], 0
je 0x2175699
push dword [ebp - 0x80]
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x68], 0
je 0x21756b0
push dword [ebp - 0x68]
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x64], 0
je 0x21756c7
push dword [ebp - 0x64]
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x78], 0
je 0x21756de
push dword [ebp - 0x78]
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x7c], 0
je 0x21756f5
push dword [ebp - 0x7c]
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x74], 0
je 0x217570c
push dword [ebp - 0x74]
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x54], 0
je 0x217572b
mov esi, dword [ebp - 0x54]
mov ecx, esi
call fcn.021747a6
push esi
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb38]
cmp dword [ebp - 0x84], 0
je 0x21759c7
mov eax, dword [0x218c860]
mov ecx, dword [ebp - 0x84]
push eax
call fcn.021748de
jmp 0x21759c7
xor esi, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x4c], esi
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x20], esi
call fcn.0217e975
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x2175992
cmp dword [ebx + 0x7c], esi
jne 0x2175992
cmp dword [ebp - 0xc], esi
jne 0x2175992
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
cmp dword [ebx + 0x44], 1
sbb edi, edi
and edi, 0xfffffffe
add edi, 4
cmp dword [ebp - 0x20], esi
je 0x21757ac
or edi, 1
cmp dword [ebx + 0x14], esi
jne 0x21757b9
push esi
call sub.RPCRT4.dll_RpcImpersonateClient
jmp 0x21757d2
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push eax
push ecx
mov ecx, dword [ebp - 8]
call fcn.0217f1bc
cmp dword [ebp - 0x50], esi
je 0x217597f
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x21757e8
cmp eax, 1
je 0x2175817
cmp eax, 2
je 0x217584f
jmp 0x2175894
cmp dword [ebp - 0x50], esi
je 0x21757f2
mov ecx, dword [ebp - 0x50]
jmp 0x21757f5
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0x80]
push dword [ebx + 0x4c]
push dword [ebx + 0x20]
push edi
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push ecx
call fcn.02181e09
jmp 0x2175891
cmp dword [ebp - 0x50], esi
je 0x2175821
mov ecx, dword [ebp - 0x50]
jmp 0x2175824
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0x84]
push dword [ebx + 0x80]
push dword [ebx + 0x4c]
push dword [ebx + 0x48]
push dword [ebx + 0x20]
push edi
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push ecx
call fcn.02181e26
jmp 0x2175891
cmp dword [ebp - 0x50], esi
je 0x2175859
mov ecx, dword [ebp - 0x50]
jmp 0x217585c
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0x84]
push dword [ebx + 0x80]
push dword [ebx + 0x60]
push dword [ebx + 0x4c]
push dword [ebx + 0x48]
push dword [ebx + 0x5c]
push dword [ebx + 0x58]
push dword [ebx + 0x50]
push dword [ebx + 0x20]
push edi
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push ecx
call fcn.02181e43
mov dword [ebp - 4], eax
cmp dword [ebp - 0x24], 0x6bb
mov ecx, 1
jne 0x21758af
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x1c], ecx
cmp eax, 3
jge 0x21758d0
jmp 0x21758ce
cmp dword [ebp - 0x24], 0x80010001
jne 0x21758d0
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
cmp eax, 3
jge 0x21758d0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
test ecx, ecx
je 0x21757d2
cmp dword [ebx + 0x14], esi
jne 0x21758e2
call sub.RPCRT4.dll_RpcRevertToSelf
cmp dword [ebp - 0x48], esi
je 0x21758f3
lea eax, [ebp - 0x4c]
push eax
call sub.RPCRT4.dll_RpcBindingFree
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 8]
push eax
call fcn.02174d79
cmp dword [ebp - 0x24], esi
jne 0x2175911
cmp dword [ebp - 4], 0x80080008
jne 0x2175992
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 8]
push eax
call fcn.0217f1ab
cmp dword [ebp - 0x14], esi
je 0x217592b
cmp dword [ebp - 0x24], esi
jne 0x21759f0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
call fcn.0217225d
test eax, eax
jne 0x2175750
mov ecx, 0x218cc88
call fcn.0217229c
mov ecx, dword [ebp - 8]
call fcn.02172381
push 0x218cc90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
lea eax, [ebp - 8]
push esi
mov ecx, dword [0x218c85c]
push eax
mov dword [ebp - 8], esi
push dword [ebx + 0x20]
call fcn.0217f3b7
mov dword [ebp - 4], eax
cmp eax, esi
jge 0x2175750
jmp 0x21759c7
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 8]
push eax
call fcn.02174d79
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 8], 0
je 0x21759b5
mov ecx, 0x218cc88
call fcn.0217229c
mov ecx, dword [ebp - 8]
call fcn.02172381
push 0x218cc90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], 0
jl 0x21759c7
push dword [ebp - 0xc]
push ebx
call fcn.021750a1
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x21759e0
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb38]
cmp dword [ebp - 0x10], 0
je 0x2175a11
push dword [ebx + 8]
call fcn.0217266c
jmp 0x2175a1d
cmp dword [ebp - 0x24], 0
je 0x2175a08
mov eax, dword [ebp - 0x24]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x2175992
mov dword [ebp - 4], 0
jmp 0x2175992
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x2175a1d
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4