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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], 0
and dl, 2
push edi
mov byte [esp + 0x13], dl
cmp byte [esi], 3
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
jne 0x1006de1a
call fcn.10064af0
mov edi, eax
test edi, edi
jne 0x1006e194
mov ebx, dword [esi + 0x74]
movsx eax, byte [esi + 0x44]
movzx ecx, word [esi + 0x46]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x20], ecx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0xc], ecx
jge 0x1006de74
mov ecx, ebx
call fcn.10065b00
test eax, eax
je 0x1006de70
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
cmp byte [esp + 0x13], 0
je 0x1006dece
cmp byte [ebx + 8], 0
je 0x1006debd
push ecx
push ebx
call fcn.10065070
mov edi, dword [ebx + 0x14]
add esp, 8
movzx ecx, ax
add edi, 2
add edi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x28]
add ecx, ecx
mul ecx
shr edx, 1
cmp edi, edx
jg 0x1006debd
cmp word [ebx + 0x18], 1
je 0x1006debd
mov dword [esp + 0x28], 1
jmp 0x1006dece
mov ecx, esi
call fcn.100648c0
mov edi, eax
test edi, edi
jne 0x1006e194
cmp byte [ebx + 8], 0
jne 0x1006df0c
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x32], ax
cmp byte [esi], al
jne 0x1006defd
movzx ecx, word [esi + 0x46]
test cx, cx
je 0x1006defd
mov eax, dword [esi + 0x74]
cmp byte [eax + 8], 0
je 0x1006defd
lea eax, [ecx - 1]
mov word [esi + 0x46], ax
jmp 0x1006df0c
mov ecx, esi
call fcn.10069bc0
test eax, eax
jne 0x1006e196
test byte [esi + 1], 0x20
je 0x1006df2c
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
push esi
call fcn.10064950
mov edi, eax
add esp, 4
test edi, edi
jne 0x1006e194
cmp dword [esi + 0x70], 0
jne 0x1006df49
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x18]
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.10064740
add esp, 0xc
mov ecx, dword [ebx + 0x48]
call fcn.100607b0
mov edi, eax
test edi, edi
jne 0x1006e194
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.1006a840
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, ebx
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.1006acb0
mov edi, dword [esp + 0x14]
add esp, 8
test edi, edi
jne 0x1006e194
cmp byte [ebx + 8], 0
jne 0x1006e0ac
mov edi, dword [esi + 0x74]
mov dword [esp + 0xc], edi
cmp dword [edi + 0x14], 0
jge 0x1006dfc3
mov ecx, edi
call fcn.10065b00
mov edi, eax
test edi, edi
jne 0x1006e194
mov edi, dword [esp + 0xc]
movsx eax, byte [esi + 0x44]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x1006dfd6
mov eax, dword [esi + ecx*4 + 0x7c]
jmp 0x1006dfd9
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [edi + 0x18]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jae 0x1006e025
mov ecx, 0x11e8d
call fcn.100dfa60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
push ecx
push edi
mov edi, dword [edi + 0x4c]
mov ecx, edi
call dword [0x1019a4f8]
call edi
mov edi, dword [esp + 0x14]
add esp, 8
movzx eax, ax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x48]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x14], eax
call fcn.100607b0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1006e088
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x1c]
add eax, 4
push eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffffc
push eax
call fcn.1006add0
add esp, 0x14
movzx edx, word [edi + 0x18]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
dec edx
mov ecx, edi
call fcn.1006acb0
mov edi, dword [esp + 0x14]
add esp, 8
test edi, edi
jne 0x1006e194
mov ecx, esi
call fcn.1006d2b0
mov edi, eax
test edi, edi
jne 0x1006e194
movsx eax, byte [esi + 0x44]
cmp eax, dword [esp + 0x1c]
jle 0x1006e11e
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.1005ff80
mov dl, byte [esi + 0x44]
mov edi, dword [esp + 0x1c]
dec dl
movsx eax, dl
mov byte [esi + 0x44], dl
cmp eax, edi
jle 0x1006e107
movsx eax, dl
dec dl
mov ecx, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], dl
test ecx, ecx
je 0x1006e100
mov ecx, dword [ecx + 0x48]
call fcn.1005ff80
mov dl, byte [esi + 0x44]
movsx eax, dl
cmp eax, edi
jg 0x1006e0e5
movsx eax, dl
mov ecx, esi
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
call fcn.1006d2b0
mov edi, eax
test edi, edi
jne 0x1006e194
cmp dword [esp + 0x28], 0
je 0x1006e172
mov byte [esi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x20], eax
jb 0x1006e157
mov dword [esi + 4], 0xffffffff
mov ax, word [ebx + 0x18]
dec ax
mov word [esi + 0x46], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10069110
cmp byte [esp + 0x13], 0
mov edi, eax
je 0x1006e18c
mov ecx, esi
call fcn.100647a0
mov byte [esi], 3
xor eax, eax
cmp edi, 0x10
cmove edi, eax
mov eax, edi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret