Function at 0x1006e54b
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 0x1006e562
mov dword [ebx], edx
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x14], ecx
ja 0x1006e8d1
jb 0x1006e57c
cmp dword [edi + 0x10], eax
jae 0x1006e8d1
sub eax, dword [edi + 0x10]
mov esi, dword [ebp + 0x10]
sbb ecx, dword [edi + 0x14]
cmp edx, ecx
jb 0x1006e591
ja 0x1006e58f
cmp esi, eax
jbe 0x1006e591
mov esi, eax
test esi, esi
je 0x1006e8d1
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x38]
call fcn.100d2f30
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 0x1006e5e0
cmp ecx, dword [edi + 0x5c]
je 0x1006e81d
mov edx, ecx
mov eax, ebx
mov ecx, dword [edi + 0x3c]
call fcn.100d2f30
mov ecx, eax
test edx, edx
ja 0x1006e8b0
jb 0x1006e601
cmp ecx, dword [edi + 0x4c]
jae 0x1006e8b0
mov eax, dword [edi + 0x48]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 4], 0
je 0x1006e8b0
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 0x1006e8b0
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 0x1006e843
cmp dword [edi + 0xa4], 1
jbe 0x1006e839
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.100d2f30
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 0x1006e70e
ja 0x1006e6c4
cmp edx, dword [edi + 0x70]
jb 0x1006e70e
cmp dword [ebp - 0xc], 0
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
ja 0x1006e70e
jb 0x1006e6d6
cmp dword [ebp + 8], eax
jae 0x1006e70e
mov eax, dword [ebp + 8]
or eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
je 0x1006e707
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.100d4d00
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 0x1006e71a
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 0x1006e724
cmp ebx, dword [edi + 0x1c]
je 0x1006e735
push ebx
push edx
mov ecx, edi
call fcn.1006ea7f
test eax, eax
jne 0x1006e8d3
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0x6c], eax
jb 0x1006e839
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.100b1608
test eax, eax
jne 0x1006e8d3
mov eax, dword [ebp - 0x14]
add dword [edi + 0x18], eax
adc dword [edi + 0x1c], 0
cmp eax, dword [ebp + 8]
jne 0x1006e839
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.1002aa82
or dword [edi + 0x58], 0xffffffff
or dword [edi + 0x5c], 0xffffffff
mov esi, dword [ebp - 0x20]
cmp dword [edi + 0x64], esi
jb 0x1006e839
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 0x1006e8d3
mov eax, dword [edi + 0x98]
cmp dword [eax + 0xca0], 0xffffffff
jne 0x1006e831
mov eax, dword [edi + 0x90]
cmp dword [eax + 0x10], esi
jne 0x1006e831
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 0x1006e599
mov eax, dword [edi + 0x60]
push esi
add eax, edx
push eax
push dword [ebp + 0xc]
call fcn.100d4620
jmp 0x1006e8bb
xor eax, eax
inc eax
jmp 0x1006e8d3
mov eax, 0x80004005
jmp 0x1006e8d3
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, 0x1ff
cmp eax, 1
je 0x1006e8b0
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 0x1006e871
cmp edx, dword [edi + 0x1c]
je 0x1006e881
push edx
push eax
mov ecx, edi
call fcn.1006ea7f
test eax, eax
jne 0x1006e8d3
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 0x1006e8ac
mov dword [eax], ecx
mov eax, edx
jmp 0x1006e8d3
push esi
push 0
push dword [ebp + 0xc]
call fcn.100d4ba0
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 0x1006e8d1
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10