Function at 0x422631
Capabilities:
Create thread

Disassembly:
push 0x30
mov eax, 0x4659a6
call fcn.00450d5a
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x492294]
cmp eax, ebx
je 0x422a7a
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x422a7a
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test byte [esi + 4], 0x10
je 0x422682
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x34], 0x1388
jmp 0x422690
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x34], 0x7d0
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jge 0x422a6b
mov eax, dword [esi + 4]
test al, 8
jne 0x422792
cmp eax, 2
je 0x422792
cmp eax, 4
jne 0x422752
mov dword [ebp - 0x24], ebx
cmp byte [ebp + 0xc], bl
je 0x4226dd
mov eax, dword [esi]
cmp eax, ebx
je 0x4226dd
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push dword [0x492294]
call fcn.004244e2
jmp 0x422706
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
lea eax, [esi + 0x14]
push ecx
mov dword [ebp - 0x38], esp
mov edi, esp
call fcn.0040b434
mov byte [ebp - 4], 3
push dword [esi + 4]
push dword [0x492294]
mov byte [ebp - 4], bl
call fcn.004245f2
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x422727
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
push dword [esi]
push dword [esi + 4]
push dword [0x492298]
call fcn.00420285
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], ebx
je 0x42285c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x42285c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
jmp 0x42285c
cmp byte [ebp + 0xc], bl
je 0x422774
mov eax, dword [esi]
cmp eax, ebx
je 0x422774
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
push dword [0x492294]
call fcn.004244e2
jmp 0x422859
lea eax, [ebp - 0x18]
push eax
push ebx
push 2
lea eax, [esi + 0x14]
push ecx
mov dword [ebp - 0x38], esp
mov edi, esp
call fcn.0040b434
mov byte [ebp - 4], 4
jmp 0x422848
mov dword [ebp - 0x28], ebx
cmp byte [ebp + 0xc], bl
je 0x4227b3
mov eax, dword [esi]
cmp eax, ebx
je 0x4227b3
lea ecx, [ebp - 0x28]
push ecx
push ebx
push eax
push dword [0x492294]
call fcn.004244e2
jmp 0x4227dc
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
lea eax, [esi + 0x14]
push ecx
mov dword [ebp - 0x38], esp
mov edi, esp
call fcn.0040b434
mov byte [ebp - 4], 1
push dword [esi + 4]
push dword [0x492294]
mov byte [ebp - 4], bl
call fcn.004245f2
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x422820
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push dword [esi]
push dword [esi + 4]
push dword [0x492298]
call fcn.00420285
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x28], ebx
je 0x42281b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x42281b
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
jge 0x422865
cmp byte [ebp + 0xc], bl
je 0x42282f
mov eax, dword [esi]
cmp eax, ebx
jne 0x42275d
lea eax, [ebp - 0x18]
push eax
push ebx
push 2
lea eax, [esi + 0x14]
push ecx
mov dword [ebp - 0x38], esp
mov edi, esp
call fcn.0040b434
mov byte [ebp - 4], 2
push dword [esi + 4]
push dword [0x492294]
mov byte [ebp - 4], bl
call fcn.004245f2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jl 0x422a34
lea eax, [ebp - 0x1c]
push eax
push 0x46c010
push 1
push ebx
push 0x46d980
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
call edi
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x4228a1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x46c040
push eax
call dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jge 0x422986
push str.NclCapability.dll
lea esi, [ebp + 0xc]
call fcn.004043af
mov byte [ebp - 4], 5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x4228e5
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4228d6
call eax
mov dword [ebp - 0x14], ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], ebx
jl 0x422922
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x46c010
push 1
push ebx
push 0x46d980
call edi
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x422922
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x46c040
push eax
call dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jge 0x422969
push 0xc
call fcn.0044c86d
pop ecx
mov esi, eax
cmp esi, ebx
je 0x422969
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x422969
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
mov dword [esi + 4], 3
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x42ee51
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], bl
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x422a6b
mov eax, dword [ebp - 0x2c]
inc eax
cmp eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
jne 0x422997
push ebx
jmp 0x42299c
push 0x3a98
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push dword [ebp - 0x18]
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], ebx
je 0x4229cd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x4229cd
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
jl 0x4229ea
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
lea edi, [eax + 8]
push edi
add eax, 4
push eax
push ecx
call dword [edx + 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], ebx
je 0x422a08
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x422a08
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ebx
je 0x422a2f
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x422a2f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
jge 0x422a6b
mov eax, dword [ebp - 0x14]
cmp eax, 0x8020000d
je 0x422a64
cmp eax, 0x8020000b
je 0x422a64
cmp eax, 0x80200000
je 0x422a64
cmp eax, 0x80100025
je 0x422a64
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x2c]
jmp 0x422693
mov dword [ebp - 0x14], 0x80200000
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.00450dff
ret 8
mov eax, 0x80100010
call fcn.0040426a
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
mov eax, 0x422a94
ret