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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x100666bb
mov dword [ebx], edx
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x14], ecx
ja 0x10066a2a
jb 0x100666d5
cmp dword [edi + 0x10], eax
jae 0x10066a2a
sub eax, dword [edi + 0x10]
mov esi, dword [ebp + 0x10]
sbb ecx, dword [edi + 0x14]
cmp edx, ecx
jb 0x100666ea
ja 0x100666e8
cmp esi, eax
jbe 0x100666ea
mov esi, eax
test esi, esi
je 0x10066a2a
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x38]
call fcn.100c70d0
mov ecx, dword [edi + 0x38]
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], edx
inc eax
mov dword [ebp - 0x24], ebx
shl eax, cl
mov ecx, eax
mov dword [ebp - 0x20], eax
lea edx, [eax - 1]
and edx, dword [edi + 0x10]
sub ecx, edx
mov dword [ebp - 0x1c], edx
cmp esi, ecx
cmova esi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], esi
cmp ebx, dword [edi + 0x58]
jne 0x10066739
cmp ecx, dword [edi + 0x5c]
je 0x10066976
mov edx, ecx
mov eax, ebx
mov ecx, dword [edi + 0x3c]
call fcn.100c70d0
mov ecx, eax
test edx, edx
ja 0x10066a09
jb 0x1006675a
cmp ecx, dword [edi + 0x4c]
jae 0x10066a09
mov eax, dword [edi + 0x48]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 4], 0
je 0x10066a09
mov ecx, dword [edi + 0x3c]
xor edx, edx
mov eax, dword [eax]
inc edx
shl edx, cl
dec edx
and edx, ebx
mov ebx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
bswap eax
bswap ebx
mov dword [ebp + 8], eax
or eax, ebx
je 0x10066a09
mov edx, dword [edi + 0x44]
mov eax, edx
mov ecx, dword [edi + 0x40]
and eax, ebx
and ecx, dword [ebp + 8]
or ecx, eax
je 0x1006699c
cmp dword [edi + 0xa4], 1
jbe 0x10066992
mov eax, dword [ebp + 8]
and ebx, 0x3fffffff
push 0x46
pop esi
sub esi, dword [edi + 0x38]
mov edx, ebx
mov ecx, esi
call fcn.100c70d0
inc eax
xor ecx, ecx
xor edx, edx
shl eax, 9
bts ecx, esi
mov dword [ebp - 0x18], eax
cmp esi, 0x20
cmovae edx, ecx
xor ecx, edx
cmp esi, 0x40
mov esi, dword [ebp + 8]
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
and esi, ecx
and ebx, edx
lea ecx, [edi + 0x78]
mov edx, esi
mov dword [ebp - 4], ecx
and edx, 0xfffffe00
mov eax, edx
mov dword [ebp - 0x1c], edx
sub eax, dword [edi + 0x70]
mov dword [ebp + 8], eax
mov eax, ebx
sbb eax, dword [edi + 0x74]
mov dword [ebp - 0xc], eax
cmp ebx, dword [edi + 0x74]
jb 0x10066867
ja 0x1006681d
cmp edx, dword [edi + 0x70]
jb 0x10066867
cmp dword [ebp - 0xc], 0
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
ja 0x10066867
jb 0x1006682f
cmp dword [ebp + 8], eax
jae 0x10066867
mov eax, dword [ebp + 8]
or eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
je 0x10066860
mov edx, dword [ebp + 8]
sub eax, edx
mov dword [ecx], eax
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.100c8b10
mov eax, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x70], edx
mov dword [edi + 0x74], ebx
mov eax, dword [eax]
add edx, eax
adc ebx, 0
jmp 0x10066873
and dword [ecx], 0
mov dword [edi + 0x70], edx
mov dword [edi + 0x74], ebx
mov dword [ebp - 4], ecx
cmp edx, dword [edi + 0x18]
jne 0x1006687d
cmp ebx, dword [edi + 0x1c]
je 0x1006688e
push ebx
push edx
mov ecx, edi
call fcn.10066bd8
test eax, eax
jne 0x10066a2c
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0x6c], eax
jb 0x10066992
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebx]
sub eax, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x68]
lea edx, [ecx + eax]
mov ecx, dword [edi + 0x28]
call fcn.100a69fc
test eax, eax
jne 0x10066a2c
mov eax, dword [ebp - 0x14]
add dword [edi + 0x18], eax
adc dword [edi + 0x1c], 0
cmp eax, dword [ebp + 8]
jne 0x10066992
add dword [ebx], eax
and esi, 0x1ff
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov ecx, dword [edi + 0x88]
sub eax, esi
push ebx
push eax
mov eax, dword [edi + 0x68]
add eax, esi
push eax
call fcn.100264d5
or dword [edi + 0x58], 0xffffffff
or dword [edi + 0x5c], 0xffffffff
mov esi, dword [ebp - 0x20]
cmp dword [edi + 0x64], esi
jb 0x10066992
mov ecx, dword [edi + 0x90]
lea edx, [ebp - 0x2c]
mov eax, dword [edi + 0x60]
push ebx
push edx
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], esi
mov eax, dword [edi + 0x98]
push ebx
push dword [edi + 0x94]
mov dword [ebp - 0x2c], esi
push dword [edi + 0x8c]
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10066a2c
mov eax, dword [edi + 0x98]
cmp dword [eax + 0xca0], 0xffffffff
jne 0x1006698a
mov eax, dword [edi + 0x90]
cmp dword [eax + 0x10], esi
jne 0x1006698a
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 0x10]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x5c], eax
jmp 0x100666f2
mov eax, dword [edi + 0x60]
push esi
add eax, edx
push eax
push dword [ebp + 0xc]
call fcn.100c8430
jmp 0x10066a14
xor eax, eax
inc eax
jmp 0x10066a2c
mov eax, 0x80004005
jmp 0x10066a2c
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, 0x1ff
cmp eax, 1
je 0x10066a09
mov eax, dword [edi + 0x40]
add eax, 0xffffffff
push 0
adc edx, 0xffffffff
and eax, ecx
and edx, ebx
add eax, dword [ebp - 0x1c]
pop ebx
adc edx, ebx
cmp eax, dword [edi + 0x18]
jne 0x100669ca
cmp edx, dword [edi + 0x1c]
je 0x100669da
push edx
push eax
mov ecx, edi
call fcn.10066bd8
test eax, eax
jne 0x10066a2c
mov esi, dword [ebp + 0x10]
mov eax, dword [edi + 0x28]
lea edx, [ebp + 0x10]
push edx
push esi
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, eax
add dword [edi + 0x18], ecx
mov eax, dword [ebp + 0x14]
adc dword [edi + 0x1c], ebx
add dword [edi + 0x10], ecx
adc dword [edi + 0x14], ebx
test eax, eax
je 0x10066a05
mov dword [eax], ecx
mov eax, edx
jmp 0x10066a2c
push esi
push 0
push dword [ebp + 0xc]
call fcn.100c89b0
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [edi + 0x10], eax
mov ebx, dword [ebp + 0x14]
adc dword [edi + 0x14], 0
test ebx, ebx
je 0x10066a2a
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10