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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xd1a8a3
push eax
mov dword fs:[0], esp
mov ecx, dword [0xd2b0e8]
mov eax, dword [0xd2b0ec]
sub esp, 0xa0
or eax, ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
and esi, 0xff0000
mov edi, 0x180000
or eax, ecx
test edi, esi
je 0xcd6f00
or esi, 0x800000
mov edx, esi
or eax, ecx
and edx, 0x30000
mov dword [0xd2b0ec], eax
cmp edx, 0x10000
je 0xcd6f27
cmp edx, 0x20000
je 0xcd6f27
push 0xfffffffffffffffe
pop eax
jmp 0xcd7130
mov ebx, dword [ebp + 0x18]
xor edx, edx
or eax, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [0xd2b0ec], eax
test ebx, ebx
jne 0xcd6f52
mov eax, esi
shr eax, 0x10
and eax, 3
mov ebx, dword [eax*4 + 0xd2b0cc]
test edi, esi
mov edi, dword [ebp + 0xc]
je 0xcd70df
push edx
xor eax, eax
push edx
inc eax
push eax
lea ecx, [esp + 0x28]
call fcn.00cd692a
and dword [esp + 0xb4], 0
mov al, byte [edi + 0xd]
xor al, 1
and al, 3
cmp al, 3
jne 0xcd6f96
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.00cd54e2
test al, al
jne 0xcd6fd4
push 0xfffffffffffffffc
pop esi
jmp 0xcd70a8
push dword [edi + 0x14]
movzx eax, byte [edi + 0xc]
push dword [edi + 4]
lea ecx, [esp + 0x5c]
push eax
call fcn.00cd692a
lea ecx, [esp + 0x1c]
push eax
call fcn.00cd6b27
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0xd1f004
call fcn.00cd6e26
cmp dword [0xd2b110], 0
jne 0xcd6fd4
inc dword [0xd2b0e0]
xor eax, eax
push eax
push eax
push eax
lea ecx, [esp + 0x44]
call fcn.00cd692a
xor eax, eax
inc eax
mov byte [esp + 0xb4], al
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x44]
mov edx, dword [0xd2b0dc]
shl ecx, 8
xor ecx, eax
and ecx, 0xff00
xor eax, ecx
mov dword [esp + 0x44], eax
push 0
pop ecx
mov eax, edx
not eax
test al, 0xfa
setne cl
lea eax, [edx + edx]
push 0
or eax, ecx
mov dword [0xd2b0dc], eax
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x7c]
call fcn.00cd546b
mov eax, dword [0xd2b0e0]
push 1
pop ecx
push dword [esp + 0x30]
test eax, eax
push dword [esp + 0x24]
cmove eax, ecx
mov edx, esi
lea ecx, [esp + 0x78]
mov dword [0xd2b0e0], eax
call fcn.00cd8425
pop ecx
pop ecx
test eax, eax
jne 0xcd70bd
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x4c]
jbe 0xcd70bd
mov dword [esp + 0x18], eax
mov eax, dword [0xd2b0e0]
push 1
pop ecx
test eax, eax
cmove eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push dword [ebp + 0x14]
mov dword [0xd2b0e0], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x44]
call fcn.00cd5c8a
add esp, 0xc
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x38], 0xd1f004
call fcn.00cd6e26
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0xd1f004
call fcn.00cd6e26
mov eax, esi
jmp 0xcd7130
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0xd1f004
call fcn.00cd6e26
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0xd1f004
call fcn.00cd6e26
mov eax, dword [0xd2b0f0]
and esi, 0xffe7ffff
cmp eax, 0x5c4e6210
mov ecx, 0x7ef030f0
cmove eax, ecx
mov dword [0xd2b0f0], eax
mov eax, dword [0xd2b110]
inc eax
cmp dword [0xd2b0e0], 0
mov ecx, 0x538752ac
cmove eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push dword [ebp + 0x14]
mov dword [0xd2b110], eax
lea eax, [esp + 0x18]
push eax
mov edx, edi
mov dword [esp + 0x1c], esi
call fcn.00cd5c8a
add esp, 0xc
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret