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

Disassembly:
sub esp, 0x4c
mov dword [esp + 0xc], 0x59a66a95
push ebx
push esi
push edi
push ebp
mov ebp, dword [esp + 0x64]
movsx ecx, word [ebp + 0xe]
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 3
imul esi, eax
imul esi, edx
dec ecx
mov dword [esp + 0x2c], esi
cmp ecx, 0x17
ja case.0x10001ceb.5
xor eax, eax
mov al, byte [ecx + 0x10002030]
jmp dword [eax*4 + 0x1000201c]
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 6
jmp case.0x10001ceb.5
mov dword [esp + 0x28], 8
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x300
lea ebx, [ebp + 0x28]
lea esi, [esp + 0x1c]
lea edi, [esp + 0x3c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x3c]
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x48]
add esp, 8
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x4c]
add esp, 8
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x50]
add esp, 8
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x54]
add esp, 8
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x58]
add esp, 8
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x5c]
add esp, 8
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x60]
add esp, 8
push 1
push eax
call fcn.100383d0
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x68]
add esp, 8
push 0x20
push eax
push ecx
call fcn.100364d0
add esp, 0xc
cmp eax, 0x20
je 0x10001ddb
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jmp case.0x10001ceb.5
cmp dword [esp + 0x34], 1
jne 0x10001eb7
push 0x300
call fcn.100365b0
add esp, 4
mov esi, eax
test esi, esi
jne 0x10001e06
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
movsx eax, word [ebp + 0xe]
cmp eax, 1
je 0x10001e1b
cmp eax, 4
je 0x10001e35
cmp eax, 8
je 0x10001e5e
jmp 0x10001e88
xor eax, eax
mov byte [esi + 4], al
mov byte [esi + 2], al
mov byte [esi], al
mov eax, 0xffffffff
mov byte [esi + 5], al
mov byte [esi + 3], al
mov byte [esi + 1], al
jmp 0x10001e88
xor ecx, ecx
add ebx, 2
lea edx, [ecx + esi]
mov al, byte [ebx]
add ebx, 4
inc ecx
mov byte [edx], al
cmp ecx, 0x10
mov al, byte [ebx - 5]
mov byte [edx + 0x100], al
mov al, byte [ebx - 6]
mov byte [edx + 0x200], al
jl 0x10001e3a
jmp 0x10001e88
xor ecx, ecx
add ebx, 2
lea edx, [ecx + esi]
mov al, byte [ebx]
add ebx, 4
inc ecx
mov byte [edx], al
cmp ecx, 0x100
mov al, byte [ebx - 5]
mov byte [edx + 0x100], al
mov al, byte [ebx - 6]
mov byte [edx + 0x200], al
jl 0x10001e63
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x60]
push eax
push esi
push ecx
call fcn.100364d0
add esp, 0xc
cmp dword [esp + 0x38], eax
je 0x10001eae
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
push esi
call fcn.10036640
add esp, 4
movsx eax, word [ebp + 0xe]
push eax
mov ecx, dword [ebp + 4]
push ecx
call fcn.100382f0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
imul edi, dword [esp + 0x30]
add esp, 8
mov eax, edi
and eax, 0xf
je 0x10001ee1
sub edi, eax
add edi, 0x10
sar edi, 3
mov eax, dword [esp + 0x18]
add eax, 0x40
push eax
call fcn.100365b0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x10001f09
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
cmp word [ebp + 0xe], 4
jne 0x10001f2f
lea eax, [edi + 0x40]
push eax
call fcn.100365b0
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x10001f31
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], esi
jle 0x10001fcf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
push eax
push esi
push ecx
push edx
call dword [esp + 0x78]
mov dword [esp + 0x24], eax
add esp, 0x10
test eax, eax
jl 0x10001ff6
cmp word [ebp + 0xe], 4
jne 0x10001fae
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp dword [ebp + 4], ecx
jle 0x10001f8e
test cl, 1
mov al, byte [edx]
je 0x10001f82
shr al, 4
and al, 0xf
mov byte [ecx + ebx], al
jmp 0x10001f88
and al, 0xf
inc edx
mov byte [ecx + ebx], al
inc ecx
cmp dword [ebp + 4], ecx
jg 0x10001f71
mov eax, dword [esp + 0x60]
push edi
push ebx
push eax
call fcn.100364d0
add esp, 0xc
cmp eax, edi
je 0x10001fc5
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x10]
push edi
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.100364d0
add esp, 0xc
cmp eax, edi
jne 0x1000200f
inc esi
cmp dword [ebp + 8], esi
jg 0x10001f3c
mov eax, dword [esp + 0x10]
push eax
call fcn.10036640
add esp, 4
cmp word [ebp + 0xe], 4
jne 0x10001fec
push ebx
call fcn.10036640
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.10036640
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret