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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x84]
push edi
xor edi, edi
mov dword [esp + 0x18], esi
lea eax, [ecx + 3]
mov dword [esp + 0x40], edi
cdq
and edx, 3
mov dword [esp + 0x4c], edi
add eax, edx
or edx, 0xffffffff
sar eax, 2
shl eax, 2
mov dword [esp + 0x20], eax
mov eax, 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x54], edx
push eax
push ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x88]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x7c], edi
call fcn.1001c9f0
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], edi
inc eax
test eax, eax
jle 0x1001cf62
mov ecx, dword [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call fcn.1001c990
test al, al
jne 0x1001cf4b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push edi
push eax
call fcn.1001c8c0
or ebp, 0xffffffff
or ebx, 0xffffffff
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x28], 8
mov eax, dword [edi - 4]
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi]
mov edx, dword [esp + 0x30]
add eax, esi
add ecx, edx
js 0x1001ccfb
mov edx, dword [esp + 0x8c]
dec edx
cmp ecx, edx
jg 0x1001ccfb
test eax, eax
jl 0x1001ccfb
mov edx, dword [esp + 0x88]
dec edx
cmp eax, edx
jg 0x1001ccfb
mov edx, ecx
imul edx, dword [esp + 0x20]
lea esi, [edx + eax]
mov edx, dword [esp + 0x84]
cmp byte [esi + edx], 0
jne 0x1001ccfb
mov ebx, dword [esp + 0x80]
xor edx, edx
mov dl, byte [esi + ebx]
mov esi, dword [esp + 0x24]
cmp edx, esi
jge 0x1001ccf7
mov ebx, ecx
mov dword [esp + 0x24], edx
mov ebp, eax
mov dword [esp + 0x38], ebx
jmp 0x1001ccfb
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add edi, 8
dec eax
mov dword [esp + 0x28], eax
jne 0x1001cc8f
cmp ebp, 0xffffffff
je 0x1001ce49
cmp ebx, 0xffffffff
je 0x1001ce49
mov eax, ebx
mov edx, dword [esp + 0x84]
imul eax, dword [esp + 0x20]
mov cl, byte [esp + 0x14]
add eax, ebp
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov byte [eax + edx], cl
lea edx, [esp + 0x40]
mov edi, 8
mov ecx, dword [edx - 4]
mov eax, dword [edx]
add ecx, ebp
add eax, ebx
js 0x1001cda5
mov esi, dword [esp + 0x8c]
dec esi
cmp eax, esi
jg 0x1001cda5
test ecx, ecx
jl 0x1001cda5
mov esi, dword [esp + 0x88]
dec esi
cmp ecx, esi
jg 0x1001cda5
imul eax, dword [esp + 0x20]
mov esi, dword [esp + 0x84]
add eax, ecx
xor ecx, ecx
mov cl, byte [eax + esi]
mov eax, ecx
test eax, eax
jne 0x1001cd8a
mov byte [esp + 0x13], 1
cmp eax, dword [esp + 0x14]
je 0x1001cda5
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x30]
inc ecx
cmp eax, ecx
je 0x1001cda5
test eax, eax
je 0x1001cda5
mov byte [esp + 0x12], 1
add edx, 8
dec edi
jne 0x1001cd45
mov al, byte [esp + 0x90]
test al, al
je 0x1001cddf
mov al, byte [esp + 0x12]
test al, al
je 0x1001cddf
mov esi, dword [esp + 0x18]
mov eax, ebx
imul eax, dword [esp + 0x88]
mov dl, byte [esi + 0x30]
mov ecx, dword [esp + 0x84]
inc dl
add eax, ebp
mov byte [eax + ecx], dl
jmp 0x1001cde3
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x13]
test al, al
je 0x1001ce49
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jge 0x1001ce25
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push eax
call fcn.1001c9b0
test al, al
jne 0x1001cf76
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push eax
mov ecx, ebp
call fcn.1001c940
jmp 0x1001ce51
mov ecx, dword [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.1001c9b0
test al, al
jne 0x1001cf76
mov edx, dword [esp + 0x14]
push ebx
push ebp
push edx
push edi
mov ecx, esi
call fcn.1001c940
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
lea edx, [esp + 0x40]
mov dword [esp + 0x28], 8
mov ecx, dword [edx - 4]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add ecx, eax
mov eax, dword [edx]
add eax, edi
js 0x1001cec9
mov ebx, dword [esp + 0x8c]
dec ebx
cmp eax, ebx
jg 0x1001cec9
test ecx, ecx
jl 0x1001cec9
mov ebx, dword [esp + 0x88]
dec ebx
cmp ecx, ebx
jg 0x1001cec9
imul eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x84]
add eax, ecx
xor ecx, ecx
mov cl, byte [eax + ebx]
mov eax, ecx
test eax, eax
jne 0x1001ceb4
mov byte [esp + 0x13], 1
cmp eax, esi
je 0x1001cec9
mov ecx, dword [ebp + 0x30]
inc ecx
cmp eax, ecx
je 0x1001cec9
test eax, eax
je 0x1001cec9
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x28]
add edx, 8
dec eax
mov dword [esp + 0x28], eax
jne 0x1001ce67
mov al, byte [esp + 0x90]
test al, al
je 0x1001cf04
mov al, byte [esp + 0x12]
test al, al
je 0x1001cf04
imul edi, dword [esp + 0x20]
mov dl, byte [ebp + 0x30]
mov eax, dword [esp + 0x2c]
inc dl
add edi, eax
mov eax, dword [esp + 0x84]
mov byte [edi + eax], dl
mov al, byte [esp + 0x13]
test al, al
je 0x1001cf32
mov edi, dword [esp + 0x1c]
push esi
push edi
mov ecx, ebp
call fcn.1001c9b0
test al, al
jne 0x1001cf76
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push esi
push edi
mov ecx, ebp
call fcn.1001c940
jmp 0x1001cf36
mov edi, dword [esp + 0x1c]
push esi
push edi
mov ecx, ebp
call fcn.1001c990
mov edi, dword [esp + 0x14]
test al, al
je 0x1001cc5d
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x30]
inc eax
cmp edi, eax
jl 0x1001cc48
xor edi, edi
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x100
mov dword [esp + 0x1c], eax
jl 0x1001cc38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x14