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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x238]
mov ecx, dword [ecx + 0x23c]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
jne 0x66cd2c
cmp ecx, ebx
je 0x66d1be
push ecx
push eax
lea esi, [esp + 0xa0]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call fcn.0065f920
mov ecx, dword [esp + 0x98]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00672200
mov eax, dword [esp + 0xa0]
cmp eax, ebx
mov edx, dword [esp + 0xa4]
jne 0x66cd77
cmp edx, ebx
je 0x66cd86
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov edi, dword [esp + 0x20]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x98], ebx
nop
cmp edi, ebx
jne 0x66cdae
cmp dword [esp + 0x24], ebx
je 0x66d1ba
mov eax, dword [esp + 0x24]
add dword [esp + 0x3c], 1
push eax
push edi
lea esi, [esp + 0x60]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0065f920
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
push ecx
push edx
lea esi, [esp + 0x118]
mov dword [esp + 0x118], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
call fcn.0065f920
mov eax, dword [esp + 0x110]
mov ecx, dword [eax + 0x220]
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
add ecx, ecx
cmp ecx, dword [esp + 0x34]
seta byte [esp + 0x13]
cmp eax, ebx
jne 0x66ce29
cmp edx, ebx
je 0x66ce38
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov eax, dword [esp + 0x60]
cmp eax, ebx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x110], ebx
jne 0x66ce5d
cmp edx, ebx
je 0x66ce6c
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
cmp byte [esp + 0x13], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], ebx
je 0x66cf60
mov ecx, dword [esp + 0x24]
push ecx
push edi
lea esi, [esp + 0xd8]
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
call fcn.0065f920
mov eax, dword [esp + 0xd0]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
push edx
push eax
lea esi, [esp + 0x168]
mov dword [esp + 0x168], ebx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x174], ebx
call fcn.0065f920
mov ecx, dword [esp + 0x160]
mov eax, dword [ecx + 0x220]
mov edx, dword [esp + 0x16c]
add eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x168]
cmp eax, ebx
jne 0x66cf02
cmp edx, ebx
je 0x66cf11
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov eax, dword [esp + 0xd8]
cmp eax, ebx
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x168], ebx
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x160], ebx
jne 0x66cf3c
cmp edx, ebx
je 0x66cf4b
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd0], ebx
mov ecx, dword [esp + 0x24]
push ecx
push edi
lea esi, [esp + 0xf8]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
call fcn.0065f920
mov eax, dword [esp + 0xf0]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
push edx
push eax
lea esi, [esp + 0x148]
mov dword [esp + 0x148], ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x154], ebx
call fcn.0065f920
mov ecx, dword [esp + 0x140]
mov edx, dword [ecx + 0x230]
mov eax, dword [esp + 0x148]
add edx, edx
cmp edx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14c]
seta byte [esp + 0x13]
cmp eax, ebx
jne 0x66cfe5
cmp edx, ebx
je 0x66cff4
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
mov eax, dword [esp + 0xf8]
cmp eax, ebx
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x140], ebx
jne 0x66d01f
cmp edx, ebx
je 0x66d02e
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
cmp byte [esp + 0x13], bl
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xf0], ebx
je 0x66d125
mov eax, dword [esp + 0x24]
push eax
push edi
lea esi, [esp + 0x80]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.0065f920
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
push ecx
push edx
lea esi, [esp + 0x188]
mov dword [esp + 0x188], ebx
mov dword [esp + 0x190], ebx
mov dword [esp + 0x194], ebx
call fcn.0065f920
mov eax, dword [esp + 0x180]
mov eax, dword [eax + 0x230]
mov edx, dword [esp + 0x18c]
add eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x188]
cmp eax, ebx
jne 0x66d0ca
cmp edx, ebx
je 0x66d0d9
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov eax, dword [esp + 0x80]
cmp eax, ebx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x188], ebx
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x180], ebx
jne 0x66d104
cmp edx, ebx
je 0x66d113
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x78], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x23c]
mov edx, dword [eax + 0x238]
push ecx
push edx
lea esi, [esp + 0x90]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call fcn.0065f920
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x88]
push eax
push edi
lea ecx, [esp + 0x228]
push ecx
push edx
call fcn.00672310
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x90]
cmp eax, ebx
jne 0x66d191
cmp edx, ebx
je 0x66d1a0
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x88], ebx
jmp 0x66cda0
mov dword [esp + 0x20], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x240]
cmp eax, ebx
mov ecx, dword [ecx + 0x244]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], ebx
jne 0x66d1e5
cmp ecx, ebx
je 0x66d672
push ecx
push eax
lea esi, [esp + 0x70]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.0065f920
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00672200
mov eax, dword [esp + 0x70]
cmp eax, ebx
mov edx, dword [esp + 0x74]
jne 0x66d21b
cmp edx, ebx
je 0x66d22a
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x68], ebx
lea ebx, [ebx]
cmp edi, ebx
jne 0x66d24e
cmp dword [esp + 0x1c], ebx
je 0x66d66e
mov eax, dword [esp + 0x1c]
add dword [esp + 0x40], 1
push eax
push edi
lea esi, [esp + 0xc8]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
call fcn.0065f920
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push ecx
push edx
lea esi, [esp + 0xb0]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
call fcn.0065f920
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
add ecx, ecx
cmp ecx, dword [esp + 0x44]
seta byte [esp + 0x13]
cmp eax, ebx
jne 0x66d2d5
cmp edx, ebx
je 0x66d2e4
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov eax, dword [esp + 0xc8]
cmp eax, ebx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xa8], ebx
jne 0x66d30f
cmp edx, ebx
je 0x66d31e
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
cmp byte [esp + 0x13], bl
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xc0], ebx
je 0x66d418
mov ecx, dword [esp + 0x1c]
push ecx
push edi
lea esi, [esp + 0x108]
mov dword [esp + 0x108], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
call fcn.0065f920
mov eax, dword [esp + 0x100]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push edx
push eax
lea esi, [esp + 0xe8]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
call fcn.0065f920
mov ecx, dword [esp + 0xe0]
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0xec]
add eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xe8]
cmp eax, ebx
jne 0x66d3ba
cmp edx, ebx
je 0x66d3c9
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov eax, dword [esp + 0x108]
cmp eax, ebx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe0], ebx
jne 0x66d3f4
cmp edx, ebx
je 0x66d403
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x100], ebx
mov ecx, dword [esp + 0x1c]
push ecx
push edi
lea esi, [esp + 0x158]
mov dword [esp + 0x158], ebx
mov dword [esp + 0x160], ebx
mov dword [esp + 0x164], ebx
call fcn.0065f920
mov eax, dword [esp + 0x150]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
push edx
push eax
lea esi, [esp + 0x138]
mov dword [esp + 0x138], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
call fcn.0065f920
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x130]
cmp dword [ecx + 0x18], edx
mov eax, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
seta byte [esp + 0x13]
cmp eax, ebx
jne 0x66d498
cmp edx, ebx
je 0x66d4a7
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
mov eax, dword [esp + 0x158]
cmp eax, ebx
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x130], ebx
jne 0x66d4d2
cmp edx, ebx
je 0x66d4e1
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
cmp byte [esp + 0x13], bl
mov dword [esp + 0x158], ebx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x150], ebx
je 0x66d5d9
mov eax, dword [esp + 0x1c]
push eax
push edi
lea esi, [esp + 0x198]
mov dword [esp + 0x198], ebx
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x1a4], ebx
call fcn.0065f920
mov eax, dword [esp + 0x190]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
push ecx
push edx
lea esi, [esp + 0x178]
mov dword [esp + 0x178], ebx
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], ebx
call fcn.0065f920
mov eax, dword [esp + 0x170]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x178]
cmp eax, ebx
mov edx, dword [esp + 0x17c]
mov dword [esp + 0x30], ecx
jne 0x66d57b
cmp edx, ebx
je 0x66d58a
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov eax, dword [esp + 0x198]
cmp eax, ebx
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x178], ebx
mov dword [esp + 0x17c], ebx
mov dword [esp + 0x170], ebx
jne 0x66d5b5
cmp edx, ebx
je 0x66d5c4
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x24]
call eax
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], ebx
mov dword [esp + 0x190], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x244]
mov edx, dword [eax + 0x240]
push ecx
push edx
lea esi, [esp + 0x128]
mov dword [esp + 0x128], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
call fcn.0065f920
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x120]
push eax
push edi
lea ecx, [esp + 0x230]
push ecx
push edx
call fcn.00672310
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x12c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x128]
cmp eax, ebx
jne 0x66d645
cmp edx, ebx
je 0x66d654
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x120], ebx
jmp 0x66d240
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x228]
cmp eax, ebx
mov ecx, dword [ecx + 0x22c]
jne 0x66d68d
cmp ecx, ebx
je 0x66d715
push ecx
push eax
lea esi, [esp + 0x1a8]
mov dword [esp + 0x1a8], ebx
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1b4], ebx
call fcn.0065f920
mov eax, dword [esp + 0x1ac]
mov ecx, dword [esp + 0x1a8]
push eax
push ecx
lea esi, [esp + 0x1d8]
mov dword [esp + 0x1c], 3
mov dword [esp + 0x1d8], ebx
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0x1e4], ebx
call fcn.0065f920
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0x230]
mov edx, dword [esp + 0x1d0]
add ax, ax
mov word [esp + 0x50], ax
mov word [esp + 0x52], ax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], eax
jmp 0x66d71c
mov ecx, dword [ebp + 8]
mov dword [esp + 0x48], ebx
mov ax, word [ecx + 0x220]
mov esi, dword [ebp + 0xc]
lea edx, [ecx + 0x20]
mov dword [esp + 0xbc], edx
mov edx, dword [ecx + 0x248]
mov ecx, dword [ecx + 0x24c]
add ax, ax
cmp word [esi + 2], ax
mov word [esp + 0xb8], ax
mov dword [esp + 0x1c8], edx
mov dword [esp + 0x1cc], ecx
jae 0x66d97f
movzx edx, ax
and edx, 0x800000ff
jns 0x66d772
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0xb8]
sub eax, edx
add eax, 0x100
mov word [esi + 2], ax
movzx eax, ax
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1bc], ebx
mov edx, dword [esp + 0x1bc]
mov dword [esp + 0x1b4], eax
cmp eax, ebx
mov ecx, 0x100ef4b4
mov dword [esp + 0x1c4], ebx
mov eax, 0x100ef4b8
je 0x66d8a1
mov dword [esp + 0x210], ecx
lea ecx, [esp + 0x200]
mov dword [esp + 0x200], ebx
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x1c4]
lea ebx, [esp + 0x13]
mov edi, ecx
mov dword [esp + 0x204], 0xffffffff
mov dword [esp + 0x20c], edx
mov dword [esp + 0x214], eax
mov dword [esp + 0x218], ecx
call fcn.006e5220
test al, al
je 0x66d81a
mov eax, dword [esp + 0x210]
add dword [eax], 1
mov al, 1
mov edx, dword [esp + 0x4c]
mov ecx, dword [0x100ef808]
push edx
mov byte [esp + 0x220], al
mov eax, dword [esp + 0x1b8]
push eax
push 1
push ecx
call dword [0x100cf1dc]
cmp byte [esp + 0x21c], 0
mov ebx, eax
je 0x66d970
mov eax, dword [esp + 0x218]
mov ecx, dword [eax + 0x10]
add dword [ecx], 0xffffffff
mov edx, dword [eax + 0x10]
mov edi, eax
add eax, 0x10
cmp dword [edx], 0
jne 0x66d970
mov eax, edx
mov dword [eax], 0
mov ecx, dword [edi + 8]
push 0
push ecx
call dword [0x100cf084]
mov edx, dword [edi + 0xc]
test edx, edx
lea eax, [edi + 0xc]
jle 0x66d970
push eax
call dword [0x100cf080]
mov eax, dword [edi + 0x14]
push 0
push 1
push eax
jmp 0x66d96a
mov dword [esp + 0x1f0], ecx
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0x1e8], eax
mov eax, dword [esp + 0x1c4]
lea ebx, [esp + 0x3b]
mov edi, ecx
mov dword [esp + 0x1e4], 0xffffffff
mov dword [esp + 0x1ec], edx
mov dword [esp + 0x1f4], eax
mov dword [esp + 0x1f8], ecx
call fcn.006e5220
test al, al
je 0x66d8ff
mov eax, dword [esp + 0x1f0]
add dword [eax], 1
mov al, 1
mov edx, dword [esp + 0x4c]
push edx
mov byte [esp + 0x200], al
mov eax, dword [0x100ef808]
push 1
push eax
call dword [0x100cf14c]
cmp byte [esp + 0x1fc], 0
mov ebx, eax
je 0x66d970
mov edi, dword [esp + 0x1f8]
mov ecx, dword [edi + 0x10]
add dword [ecx], 0xffffffff
mov ecx, dword [edi + 0x10]
cmp dword [ecx], 0
lea eax, [edi + 0x10]
jne 0x66d970
mov edx, ecx
mov dword [edx], 0
mov eax, dword [edi + 8]
push 0
push eax
call dword [0x100cf084]
mov ecx, dword [edi + 0xc]
test ecx, ecx
lea eax, [edi + 0xc]
jle 0x66d970
push eax
call dword [0x100cf080]
mov edx, dword [edi + 0x14]
push 0
push 1
push edx
call dword [0x100cf088]
mov eax, ebx
mov dword [esi + 4], eax
mov ax, word [esp + 0xb8]
xor ebx, ebx
mov ecx, dword [esp + 0xbc]
mov edx, dword [esi + 4]
mov word [esi], ax
movzx eax, ax
push eax
push ecx
push edx
call dword [0x100ef7ec]
cmp dword [esp + 0x48], ebx
jne 0x66d9a3
mov dword [esi + 8], ebx
jmp 0x66da03
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 8], 1
cmp word [esi + 0xe], di
mov dword [esp + 0x54], eax
jae 0x66d9ec
movzx ecx, di
and ecx, 0x800000ff
jns 0x66d9d0
dec ecx
or ecx, 0xffffff00
inc ecx
mov edx, edi
sub edx, ecx
mov ecx, dword [esi + 0x10]
lea eax, [edx + 0x100]
mov word [esi + 0xe], ax
movzx eax, ax
call fcn.006eb3c0
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 0x10]
movzx eax, di
push eax
push ecx
push edx
mov word [esi + 0xc], di
call dword [0x100ef7ec]
test byte [esp + 0x14], 2
mov eax, dword [esp + 0x1c8]
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
je 0x66da72
mov eax, dword [esp + 0x1d8]
and dword [esp + 0x14], 0xfffffffd
cmp eax, ebx
mov edx, dword [esp + 0x1dc]
jne 0x66da63
cmp edx, ebx
je 0x66da72
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
test byte [esp + 0x14], 1
je 0x66daa3
mov eax, dword [esp + 0x1a8]
cmp eax, ebx
jne 0x66da8d
cmp dword [esp + 0x1ac], ebx
je 0x66daa3
mov ecx, dword [0x100ef540]
mov esi, dword [esp + 0x1ac]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x24]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8