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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xd4]
mov ecx, eax
mov edx, eax
and eax, 0x80
and ecx, 0x1f
and edx, 0x160
lea ebx, [ecx - 2]
and ebx, 0xfffffffd
je 0x66100bf9
lea ebx, [ecx - 8]
and ebx, 0xfffffff7
mov ebx, 1
cmovne ecx, ebx
cmp edx, 0x40
je 0x66100c0c
cmp edx, 0x100
mov ebx, 0x20
cmovne edx, ebx
or eax, ecx
mov ebx, dword [esp + 0xc8]
or eax, edx
mov dword [esp + 0x50], eax
mov edi, eax
test ebx, ebx
jle 0x66100e59
and eax, 9
mov edx, dword [esp + 0xc4]
cmp eax, 1
sbb eax, eax
and eax, 8
add eax, 8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc4]
add eax, 6
add edx, 3
cmovns eax, edx
sar eax, 2
mov dword [esp + 0x5c], eax
mov eax, edi
and edi, 0x160
and eax, 0x1f
mov ecx, edi
mov dword [esp + 0x34], eax
mov edi, eax
lea eax, [eax - 2]
and eax, 0xfffffffd
mov dword [esp + 0x3c], eax
lea eax, [edi - 8]
and eax, 0xfffffff7
cmp ecx, 0x40
setne dl
cmp ecx, 0x100
mov dword [esp + 0x4c], eax
setne al
test dl, al
mov eax, 0x20
cmove eax, ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x38], eax
test ecx, ecx
jle 0x66100e59
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x24], 1
mov dword [esp + 0x48], 0
lea eax, [ebp*4]
mov dword [esp + 0x20], 2
mov dword [esp + 0x54], eax
lea eax, [ebp + ebp]
lea edi, [eax + ebp]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x30], edi
sub eax, 1
mov dword [esp + 0x1c], 3
and eax, 0xfffffffc
mov dword [esp + 0x18], 0
add eax, 4
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc4]
sub eax, 1
and eax, 0xfffffffc
add eax, 6
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
mov edi, 2
mov ebx, dword [esp + 0x48]
add esi, dword [esp + 0xc0]
sar eax, 2
imul eax, dword [esp + 0x5c]
add ebx, dword [esp + 0xc0]
imul eax, dword [esp + 0x2c]
add eax, dword [esp + 0xd0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
and eax, 0x80
mov dword [esp + 0x28], eax
lea esi, [esi]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, ecx
test edx, edx
je 0x66100d7c
mov eax, dword [esp + 0x4c]
test eax, eax
mov eax, 1
cmove eax, ecx
mov edx, dword [esp + 0x38]
or edx, dword [esp + 0x28]
or edx, eax
test al, 6
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
lea ecx, [edx + 8]
cmove ecx, edx
and eax, 1
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.66108190
mov edx, dword [esp + 0x14]
test dl, 2
jne 0x661011e0
and edx, 4
jne 0x66101200
lea eax, [edi + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc8], eax
jg 0x66101130
mov eax, dword [esp + 0x24]
cmp dword [esp + 0xc8], eax
jg 0x66101068
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xc8], eax
jg 0x66100f88
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0xc8], eax
jg 0x66100e68
mov ecx, dword [esp + 0x2c]
add edi, 4
add dword [esp + 0x10], ecx
add esi, 0x10
add ebx, 0x10
cmp edi, dword [esp + 0x40]
jne 0x66100d60
mov eax, dword [esp + 0x54]
add dword [esp + 0x18], 4
add dword [esp + 0x30], eax
mov edi, dword [esp + 0x18]
add dword [esp + 0x44], eax
add ebp, eax
add dword [esp + 0x1c], 4
add dword [esp + 0x20], 4
add dword [esp + 0x48], eax
add dword [esp + 0x24], 4
cmp edi, dword [esp + 0x58]
jne 0x66100d19
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x30]
movzx edx, byte [esp + 0x90]
mov eax, esi
sub eax, dword [esp + 0x44]
mov byte [eax + ecx], dl
movzx edx, byte [esp + 0x91]
mov byte [eax + ecx + 1], dl
movzx edx, byte [esp + 0x92]
mov byte [eax + ecx + 2], dl
movzx edx, byte [esp + 0x93]
mov byte [eax + ecx + 3], dl
lea edx, [edi - 1]
cmp dword [esp + 0xc4], edx
jle 0x66100edd
movzx edx, byte [esp + 0x94]
mov byte [eax + ecx + 4], dl
movzx edx, byte [esp + 0x95]
mov byte [eax + ecx + 5], dl
movzx edx, byte [esp + 0x96]
mov byte [eax + ecx + 6], dl
movzx edx, byte [esp + 0x97]
mov byte [eax + ecx + 7], dl
cmp dword [esp + 0xc4], edi
jle 0x66100f1a
mov ecx, dword [esp + 0x30]
movzx edx, byte [esp + 0x98]
mov byte [eax + ecx + 8], dl
movzx edx, byte [esp + 0x99]
mov byte [eax + ecx + 9], dl
movzx edx, byte [esp + 0x9a]
mov byte [eax + ecx + 0xa], dl
movzx edx, byte [esp + 0x9b]
mov byte [eax + ecx + 0xb], dl
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xc4], eax
jle 0x66100e0a
mov ecx, dword [esp + 0x30]
mov eax, esi
sub eax, dword [esp + 0x44]
add edi, 4
movzx edx, byte [esp + 0x9c]
add esi, 0x10
add ebx, 0x10
mov byte [eax + ecx + 0xc], dl
movzx edx, byte [esp + 0x9d]
mov byte [eax + ecx + 0xd], dl
movzx edx, byte [esp + 0x9e]
mov byte [eax + ecx + 0xe], dl
movzx edx, byte [esp + 0x9f]
mov byte [eax + ecx + 0xf], dl
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x10], ecx
cmp dword [esp + 0x40], edi
jne 0x66100d60
jmp 0x66100e25
movzx eax, byte [esp + 0x80]
mov byte [esi], al
movzx eax, byte [esp + 0x81]
mov byte [esi + 1], al
movzx eax, byte [esp + 0x82]
mov byte [esi + 2], al
movzx eax, byte [esp + 0x83]
mov byte [esi + 3], al
lea eax, [edi - 1]
cmp dword [esp + 0xc4], eax
jle 0x66100feb
movzx eax, byte [esp + 0x84]
mov byte [esi + 4], al
movzx eax, byte [esp + 0x85]
mov byte [esi + 5], al
movzx eax, byte [esp + 0x86]
mov byte [esi + 6], al
movzx eax, byte [esp + 0x87]
mov byte [esi + 7], al
cmp dword [esp + 0xc4], edi
jle 0x66101020
movzx eax, byte [esp + 0x88]
mov byte [esi + 8], al
movzx eax, byte [esp + 0x89]
mov byte [esi + 9], al
movzx eax, byte [esp + 0x8a]
mov byte [esi + 0xa], al
movzx eax, byte [esp + 0x8b]
mov byte [esi + 0xb], al
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xc4], eax
jle 0x66100dfd
movzx eax, byte [esp + 0x8c]
mov byte [esi + 0xc], al
movzx eax, byte [esp + 0x8d]
mov byte [esi + 0xd], al
movzx eax, byte [esp + 0x8e]
mov byte [esi + 0xe], al
movzx eax, byte [esp + 0x8f]
mov byte [esi + 0xf], al
jmp 0x66100dfd
movzx edx, byte [esp + 0x70]
mov eax, ebx
sub eax, dword [esp + 0x48]
mov byte [eax + ebp], dl
movzx edx, byte [esp + 0x71]
mov byte [eax + ebp + 1], dl
movzx edx, byte [esp + 0x72]
mov byte [eax + ebp + 2], dl
movzx edx, byte [esp + 0x73]
mov byte [eax + ebp + 3], dl
lea edx, [edi - 1]
cmp dword [esp + 0xc4], edx
jle 0x661010c1
movzx edx, byte [esp + 0x74]
mov byte [eax + ebp + 4], dl
movzx edx, byte [esp + 0x75]
mov byte [eax + ebp + 5], dl
movzx edx, byte [esp + 0x76]
mov byte [eax + ebp + 6], dl
movzx edx, byte [esp + 0x77]
mov byte [eax + ebp + 7], dl
cmp dword [esp + 0xc4], edi
jle 0x661010ee
movzx edx, byte [esp + 0x78]
mov byte [eax + ebp + 8], dl
movzx edx, byte [esp + 0x79]
mov byte [eax + ebp + 9], dl
movzx edx, byte [esp + 0x7a]
mov byte [eax + ebp + 0xa], dl
movzx edx, byte [esp + 0x7b]
mov byte [eax + ebp + 0xb], dl
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xc4], eax
jle 0x66100dec
movzx edx, byte [esp + 0x7c]
mov eax, ebx
sub eax, dword [esp + 0x48]
mov byte [eax + ebp + 0xc], dl
movzx edx, byte [esp + 0x7d]
mov byte [eax + ebp + 0xd], dl
movzx edx, byte [esp + 0x7e]
mov byte [eax + ebp + 0xe], dl
movzx edx, byte [esp + 0x7f]
mov byte [eax + ebp + 0xf], dl
jmp 0x66100dec
movzx eax, byte [esp + 0x60]
mov byte [ebx], al
movzx eax, byte [esp + 0x61]
mov byte [ebx + 1], al
movzx eax, byte [esp + 0x62]
mov byte [ebx + 2], al
movzx eax, byte [esp + 0x63]
mov byte [ebx + 3], al
lea eax, [edi - 1]
cmp dword [esp + 0xc4], eax
jle 0x6610117b
movzx eax, byte [esp + 0x64]
mov byte [ebx + 4], al
movzx eax, byte [esp + 0x65]
mov byte [ebx + 5], al
movzx eax, byte [esp + 0x66]
mov byte [ebx + 6], al
movzx eax, byte [esp + 0x67]
mov byte [ebx + 7], al
cmp dword [esp + 0xc4], edi
jle 0x661011a4
movzx eax, byte [esp + 0x68]
mov byte [ebx + 8], al
movzx eax, byte [esp + 0x69]
mov byte [ebx + 9], al
movzx eax, byte [esp + 0x6a]
mov byte [ebx + 0xa], al
movzx eax, byte [esp + 0x6b]
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xc4], eax
jle 0x66100ddb
movzx eax, byte [esp + 0x6c]
mov byte [ebx + 0xc], al
movzx eax, byte [esp + 0x6d]
mov byte [ebx + 0xd], al
movzx eax, byte [esp + 0x6e]
mov byte [ebx + 0xe], al
movzx eax, byte [esp + 0x6f]
mov byte [ebx + 0xf], al
jmp 0x66100ddb
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.66103f60
jmp 0x66100dc3
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.66104df0
jmp 0x66100dc3