Function at 0x1001a430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c81d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], ecx
cmp dword [edx + 0x18], 0
lea edi, [edx + 8]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x50], eax
je 0x1001a5ad
cmp dword [edi + 0x14], 7
mov eax, dword [edx]
mov dword [ebp - 0x48], eax
jbe 0x1001a494
mov edi, dword [edi]
cmp dword [ecx + 0x50], 0
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], ecx
je 0x1001a512
cmp byte [edx + 0x31], 0
je 0x1001a512
mov ecx, dword [edx + 0x40]
cmp ecx, 0xa
je 0x1001a512
cmp ecx, 0xb
je 0x1001a512
cmp ecx, 0xc
je 0x1001a512
cmp ecx, 0x1b
je 0x1001a512
cmp ecx, 6
je 0x1001a512
cmp ecx, 7
je 0x1001a512
cmp ecx, 8
je 0x1001a512
cmp ecx, 9
je 0x1001a512
cmp ecx, 0x2e
je 0x1001a512
cmp ecx, 0x2f
je 0x1001a512
cmp dword [eax + 0x2c], 0
je 0x1001a5b4
mov eax, dword [ebx + 0x10]
test eax, eax
jl 0x1001a512
mov ecx, dword [ebx + 0xc]
jg 0x1001a5cd
test ecx, ecx
jb 0x1001a512
test eax, eax
jg 0x1001a5cd
jl 0x1001a512
cmp ecx, 0x1400000
jae 0x1001a5cd
push 0x158
call fcn.1015144f
add esp, 4
mov esi, eax
mov dword [ebp - 0x5c], esi
push 0x158
push 0
push esi
call fcn.10152e30
add esp, 0xc
mov ecx, esi
push dword [ebp - 0x54]
call fcn.1005eef0
mov esi, eax
mov dword [ebp - 0x58], eax
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
cmp dword [edx + 0x24], 0
je 0x1001a7f4
cmp dword [ecx + 0x40], 0
jne 0x1001a568
cmp dword [ecx], 0
je 0x1001aa68
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x4c], eax
test eax, 0x400
je 0x1001a799
cmp dword [ecx + 0x4c], 0
jne 0x1001a589
cmp dword [ecx + 0x50], 0
je 0x1001a799
push dword [ebp - 0x50]
mov eax, dword [esi]
push 2
push dword [ecx + 0x24]
push dword [edx + 0x2c]
mov eax, dword [eax + 0x14]
push ecx
push edi
mov ecx, esi
call eax
test eax, eax
jne 0x1001a7ae
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
jmp 0x1001aa6a
cmp dword [ebx + 0x10], 0
jl 0x1001a512
jg 0x1001a5cd
cmp dword [ebx + 0xc], 0x6400000
jb 0x1001a512
push 0xc0
call fcn.1015144f
add esp, 4
mov esi, eax
mov dword [ebp - 0x58], esi
push 0xc0
push 0
push esi
call fcn.10152e30
add esp, 0xc
mov dword [esi + 4], vtable.CArkUnknownImp.0
mov dword [esi + 8], 0
mov dword [esi], vtable.CArkWinOutBuf.1.0
mov dword [esi + 4], vtable.CArkWinOutBuf.0
push 4
push 0x3000
push 0x10000
push 0
mov dword [esi + 0x18], 0x10000
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1001a635
mov eax, 0x10000
xor ecx, ecx
jmp 0x1001a643
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x24], ecx
push eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x54]
xorps xmm0, xmm0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x6c], vtable.CArkAutoByte.0
mov dword [esi + 0x98], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xb4], 0xffffffff
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0xa8], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x64], 0
movups xmmword [esi + 0x80], xmm0
movq qword [esi + 0x90], xmm0
mov dword [esi + 0x68], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1001a73d
push eax
call dword [ebp - 0x44]
mov dword [esi + 0x58], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1001a760
push eax
call dword [ebp - 0x44]
mov dword [esi + 0x5c], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1001a783
push eax
call dword [ebp - 0x44]
mov dword [esi + 0x60], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x60], eax
jmp 0x1001a543
push dword [ebp - 0x50]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x4c]
push edi
mov eax, dword [eax + 0x40]
call eax
jmp 0x1001a59f
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
je 0x1001aa68
push 0
push 0x2000000
push 3
push 0
push 0
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001aa68
mov edx, dword [ebp - 0x48]
mov ecx, edi
call fcn.1001bfd0
push edi
call dword [ebp - 0x44]
jmp 0x1001aa68
test dword [ecx + 0x24], 0x400
je 0x1001a824
cmp dword [ecx + 0x4c], 0
jne 0x1001a809
cmp dword [ecx + 0x50], 0
je 0x1001a824
push dword [ebp - 0x50]
mov eax, dword [esi]
push 2
push dword [ecx + 0x24]
push dword [edx + 0x2c]
mov eax, dword [eax + 0x14]
push ecx
push edi
mov ecx, esi
call eax
jmp 0x1001aa60
cmp dword [ecx + 0x54], 1
jne 0x1001a851
cmp dword [ecx + 0x4c], 0
jne 0x1001a836
cmp dword [ecx + 0x50], 0
je 0x1001a851
push dword [ebp - 0x50]
mov eax, dword [esi]
push 1
push dword [ecx + 0x24]
push dword [edx + 0x2c]
mov eax, dword [eax + 0x14]
push ecx
push edi
mov ecx, esi
call eax
jmp 0x1001aa60
mov ecx, dword [edx + 0x3c]
xor eax, eax
cmp byte [edx + 0x30], al
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x40]
setne al
mov dword [ebp - 0x40], eax
mov al, byte [edx + 0x32]
push ecx
mov byte [ebp - 0x3c], al
mov ecx, esi
mov eax, dword [edx + 0x38]
push 0
mov dword [ebp - 0x38], eax
mov eax, dword [esi]
push 0
push dword [ebp - 0x50]
mov eax, dword [eax + 0x10]
push edi
call eax
test eax, eax
jne 0x1001aa68
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x28], 0
je 0x1001a5a7
mov eax, dword [ebp - 0x50]
cmp dword [eax], 0x7b
jne 0x1001a5a7
mov eax, dword [0x101c5980]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x1018c594
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.1000bc60
test edi, edi
je 0x1001aa26
movzx eax, word [edi]
mov ecx, eax
test ax, ax
je 0x1001aa26
xor edx, edx
mov esi, edi
xor eax, eax
nop dword [eax]
cmp cx, 0x5c
je 0x1001a90c
cmp cx, 0x2f
jne 0x1001a90f
inc edx
xor eax, eax
cmp cx, 0x2e
movzx ecx, word [esi + 2]
cmove eax, esi
add esi, 2
test cx, cx
jne 0x1001a900
mov ecx, dword [0x101c5980]
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x1001a95e
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000bc60
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
cmp word [edi], cx
je 0x1001aa02
nop dword [eax]
test eax, eax
je 0x1001a97c
cmp eax, edi
je 0x1001a9ff
movzx eax, word [edi]
mov esi, eax
mov dword [ebp - 0x54], esi
cmp eax, 0x5c
je 0x1001a9d5
cmp ax, 0x2f
je 0x1001a9d5
test edx, edx
jne 0x1001a9b7
mov eax, dword [ebp - 0x28]
inc eax
add eax, ecx
cmp eax, 0xff
ja 0x1001a9ff
mov eax, esi
lea ecx, [ebp - 0x20]
movzx eax, ax
push eax
call fcn.1000bf50
mov ecx, dword [ebp - 0x48]
inc ecx
mov dword [ebp - 0x48], ecx
jmp 0x1001a9ec
lea esi, [ecx + 1]
cmp esi, 0xff
ja 0x1001a9ef
movzx eax, ax
lea ecx, [ebp - 0x20]
push eax
call fcn.1000bf50
mov ecx, esi
mov dword [ebp - 0x48], ecx
jmp 0x1001a9ec
dec edx
mov dword [ebp - 0x48], 0
push 0x5c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x44], edx
call fcn.1000bf50
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x5c]
add edi, 2
cmp word [edi], 0
jne 0x1001a970
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.1000bec0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1001aa26
cmp eax, dword [0x101c5980]
je 0x1001aa26
push eax
call fcn.10154f5a
add esp, 4
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x20]
push ecx
push 0
mov eax, dword [eax + 0x10]
mov ecx, esi
push 0
push dword [ebp - 0x50]
push edi
call eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1001aa60
cmp edi, dword [0x101c5980]
je 0x1001aa60
push edi
call fcn.10154f5a
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
je 0x1001a5a7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10151433
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret