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

Disassembly:
push ebx
push ebp
push esi
push edi
push ecx
mov esi, ecx
call fcn.1001afa0
mov dword [esi + 0x58], 0
lea edi, [esi + 0xb8]
mov dword [esi + 0x54], 0
mov ecx, 1
mov dword [esi + 0x50], 0
mov eax, dword [esi + 4]
mov dword [esi], 0x10053cb0
mov eax, dword [eax + 8]
mov dword [eax + esi + 4], 0x10053cac
mov eax, dword [0x10059df0]
mov dword [esi + 0x88], 0x10059da0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov word [esi + 0x94], 0x100
mov dword [esi + 0x98], 0x10059da0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov word [esi + 0xa4], 0x100
mov dword [esi + 0xa8], 0x10059da0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov word [esi + 0xb4], 0x100
mov dword [edi], 0x10059da0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov word [edi + 0xc], 0x1ff
lock xadd dword [eax + 0x1ca8], ecx
inc ecx
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x10], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov byte [eax + esi + 0x2c], 1
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x30], ebx
mov eax, dword [esi + 4]
mov dword [esi + 0x5c], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x14], ecx
mov dword [eax + esi + 0x18], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [ecx + esi + 0x1c], eax
movzx eax, byte [ebp]
mov byte [esi + 0x60], al
movzx eax, byte [ebp + 1]
mov byte [esi + 0x61], al
movzx eax, byte [ebp + 0xc]
mov byte [esi + 0x70], al
mov eax, dword [ebp + 4]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x20], ecx
mov dword [eax + esi + 0x24], edx
movzx eax, byte [esi + 0x74]
and al, 1
mov byte [esi + 0x7d], 0
mov byte [esi + 0x7c], al
mov eax, dword [esi + 0x74]
shr eax, 1
and al, 1
mov word [esi + 0x7f], 0
mov byte [esi + 0x7e], al
test ebx, ebx
jne 0x1001b436
cmp byte [esp + 0x1c], bl
jne 0x1001b436
xor cl, cl
jmp 0x1001b438
mov cl, 1
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov byte [eax + esi + 0x2e], cl
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov byte [eax + esi + 0x2d], cl
mov dword [esi + 0x78], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x64], 0
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x68], 0xafc8
mov ecx, dword [ecx + 8]
test ebx, ebx
je 0x1001b4e5
mov eax, dword [ebx + 0x36c]
mov dword [ecx + esi + 0x28], eax
mov ebp, dword [ebx + 0x374]
mov eax, dword [ebx + 0x370]
mov dword [esp + 0x1c], eax
test ebp, ebp
jle 0x1001b4d5
lea ebx, [ebp*2]
lea eax, [ebx + 2]
cmp dword [edi + 8], eax
jae 0x1001b4ba
push eax
mov ecx, edi
call fcn.10004970
test eax, eax
je 0x1001b4d5
mov eax, dword [edi]
xor ecx, ecx
push ebx
push dword [esp + 0x20]
mov dword [edi + 4], ebp
push eax
mov word [ebx + eax], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1001b4ec
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
jmp 0x1001b4ec
mov eax, dword [ebp + 0x20]
mov dword [ecx + esi + 0x28], eax
movzx eax, byte [esi + 0x70]
dec eax
cmp eax, 3
ja case.default.0x1001b4f6
jmp dword [eax*4 + 0x1001b5b4]
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x88], 8
jmp case.default.0x1001b4f6
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x88], 0x10
jmp case.default.0x1001b4f6
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x88], 0x804
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov byte [eax + esi + 0x2e], 0
jmp case.default.0x1001b4f6
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 0x88], 0x104
mov byte [esi + 0x7d], 1
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
cmp byte [eax + esi + 0x2d], 0
je 0x1001b56e
or dword [eax + esi + 0x88], 0x100000
mov eax, dword [esi + 0x74]
test eax, 0x100
je 0x1001b592
mov eax, dword [esi + 4]
pop edi
mov eax, dword [eax + 8]
or dword [eax + esi + 0x88], 0x2000000
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
test eax, 0x208
je 0x1001b5aa
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
or dword [eax + esi + 0x88], 0x400000
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10