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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
and dl, 2
mov eax, dword [edi + 8]
movzx ecx, word [edi + 0x46]
mov ebx, dword [edi + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
movsx eax, byte [edi + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x1c], ecx
mov ax, word [eax + ecx*2]
mov ch, al
mov dword [esp + 0x2c], 0
mov byte [esp + 0xf], dl
mov dword [esp + 0x24], ebx
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x20], ecx
test dl, dl
je 0x100ce77c
cmp byte [ebx + 8], 0
je 0x100ce76d
push ecx
push ebx
call fcn.100d6b50
movzx esi, word [ebx + 0x14]
movzx ecx, ax
mov eax, dword [esp + 0x1c]
add esi, 2
add esi, ecx
mov ecx, dword [eax + 0x28]
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
add esp, 8
cmp esi, edx
jg 0x100ce76d
mov dword [esp + 0x2c], 1
jmp 0x100ce77c
mov ecx, edi
call fcn.100d73a0
test eax, eax
jne 0x100cea2a
cmp byte [ebx + 8], 0
jne 0x100ce7bb
and byte [edi + 1], 0xf1
xor eax, eax
cmp byte [edi], 1
mov word [edi + 0x2a], ax
jne 0x100ce7ac
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x100ce7ac
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x100ce7ac
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x100ce7bb
mov ecx, edi
call fcn.100d2100
test eax, eax
jne 0x100cea2a
mov al, byte [edi + 1]
test al, 0x20
je 0x100ce7f1
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x3c]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x100ce7ec
cmp ecx, edi
je 0x100ce7e5
test edx, edx
je 0x100ce87c
cmp dword [ecx + 0x3c], edx
je 0x100ce87c
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x100ce7d0
and al, 0xdf
mov byte [edi + 1], al
cmp dword [edi + 0x70], 0
jne 0x100ce80e
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x28]
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
call fcn.100d7600
add esp, 0xc
mov ecx, dword [ebx + 0x48]
call fcn.100dbe00
test eax, eax
jne 0x100cea2a
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.100d1690
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
add esp, 4
lea eax, [esp + 0x10]
push eax
movzx eax, word [esp + 0x46]
push eax
mov ecx, ebx
call fcn.100d11f0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x100cea2a
cmp byte [ebx + 8], al
jne 0x100ce95a
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x18]
mov esi, dword [edi + 0x74]
dec eax
cmp ecx, eax
jge 0x100ce89c
mov eax, dword [edi + ecx*4 + 0x7c]
mov eax, dword [eax + 4]
jmp 0x100ce89f
test ecx, ecx
je 0x100ce7ec
push edi
call fcn.100d72a0
add esp, 4
test eax, eax
je 0x100ce7f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ebx, cx
and ebx, eax
add ebx, edx
lea eax, [edx + 4]
cmp ebx, eax
jae 0x100ce8d9
mov ecx, 0x10a17
call fcn.10067230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ebx
push esi
call eax
mov ecx, dword [esi + 0x48]
movzx eax, ax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov eax, dword [eax + 0x54]
mov dword [esp + 0x14], eax
call fcn.100dbe00
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100ce932
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x30]
push dword [esp + 0x1c]
add eax, 4
push eax
lea eax, [ebx - 4]
mov ebx, dword [esp + 0x34]
push eax
mov ecx, ebx
call fcn.100d10c0
add esp, 0x14
jmp 0x100ce936
mov ebx, dword [esp + 0x24]
movzx edx, word [esi + 0x16]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x2c]
dec edx
mov ecx, esi
call fcn.100d11f0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x100cea2a
mov ecx, edi
call fcn.100ced60
mov esi, eax
test esi, esi
jne 0x100cea28
movsx ecx, byte [edi + 0x44]
cmp ecx, dword [esp + 0x18]
jle 0x100ce9c8
mov ecx, dword [edi + 0x74]
call fcn.100d5a50
dec byte [edi + 0x44]
movsx eax, byte [edi + 0x44]
mov esi, dword [esp + 0x18]
cmp eax, esi
jle 0x100ce9b0
lea esp, [esp]
mov dl, byte [edi + 0x44]
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x100ce9a8
call fcn.100d5a50
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x100ce990
movsx eax, byte [edi + 0x44]
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.100ced60
mov esi, eax
test esi, esi
jne 0x100cea28
cmp dword [esp + 0x2c], 0
je 0x100cea06
mov byte [edi], 2
movzx eax, word [ebx + 0x16]
cmp dword [esp + 0x1c], eax
jl 0x100ce9f6
mov dword [edi + 0x40], 0xffffffff
mov ax, word [ebx + 0x16]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.100d2ab0
cmp byte [esp + 0xf], 0
mov esi, eax
je 0x100cea20
mov ecx, edi
call fcn.100d7430
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret