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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
sub eax, 0
je 0x1006deca
sub eax, 1
je 0x1006de86
sub eax, 1
jne 0x1006deca
cmp dword [esi + 0x3c], 2
lea ebx, [esi + 0x9c]
mov dword [esi + 0x2c], 0x914
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 1
mov dword [esi + 0x38], 0x1010000
mov dword [esi + 0x98], 0x2a8dc0
mov dword [ebp - 8], ebx
mov dword [ebx], 0x914
mov dword [esi + 0x50], 0x64
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
jge 0x1006dee4
mov dword [esi + 0x28], eax
jmp 0x1006dee1
cmp dword [esi + 0x3c], 2
lea ebx, [esi + 0x9c]
mov dword [esi + 0x2c], 0x914
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 1
mov dword [esi + 0x38], 0x1010100
mov dword [esi + 0x98], 0x158880
mov dword [ebp - 8], ebx
mov dword [ebx], 0x930
jge 0x1006dee4
mov dword [esi + 0x28], 0
jmp 0x1006dee4
cmp dword [esi + 0x9c], 0
lea ebx, [esi + 0x9c]
mov dword [ebp - 8], ebx
jne 0x1006dee4
mov eax, dword [esi + 0x2c]
mov dword [ebx], eax
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0x3c]
lea eax, [esi + 0x2a8]
mov dword [esi + 0x80], eax
xor eax, eax
cmp dword [esi + 0x50], 0x64
mov dword [esi + 0xa8], 0
sete al
mov dword [esi + 0xac], 0
lea eax, [eax*2 + 0xc]
mov dword [esi + 0xb0], eax
lea eax, [ecx + 4]
lea eax, [eax + eax*2]
mov dword [esi + 0xb8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x1006e16a
xor ecx, ecx
lea edi, [esi + 0xd8]
mov dword [ebp - 0x14], ecx
mov edx, dword [esi + 0x40]
add edx, ecx
mov dword [ebp - 0x18], edx
movzx eax, word [edx]
add eax, 0x100
mov dword [edi - 0x18], eax
movzx eax, word [edx]
mov dword [edi - 0x14], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, 0xe0
mov eax, dword [edx + 0x18]
mov dword [edi - 8], eax
mov eax, dword [edx + 0x1c]
mov dword [edi + 0x50], eax
mov eax, dword [edx + 0x20]
mov dword [edi + 0x44], eax
mov eax, dword [edx + 0x24]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x50]
sub eax, 0x64
mov word [edi + 0x58], 0
neg eax
mov byte [edi + 0x5a], 0
sbb eax, eax
mov dword [edi + 0x4c], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
movzx eax, word [edx]
cmp ax, cx
jb 0x1006e038
cmp dword [edi + 0x48], 0
mov byte [edi + 0x58], 1
jne 0x1006dfd5
mov dword [edi + 0x48], 0x1006af00
xor eax, eax
cmp dword [esi + 0x50], 0x64
mov dword [edi - 0x10], 1
sete al
add eax, 0x12
mov dword [edi - 4], eax
mov eax, dword [edx + 8]
cdq
and edx, 0x3ff
add eax, edx
and eax, 0xfffffc00
mov dword [edi - 0xc], eax
mov eax, dword [esi + 0x28]
cmp eax, 1
jne 0x1006e01d
mov dword [edi - 0xc], 0xb800
mov dword [edi - 8], 0
inc dword [esi + 0xa8]
jmp 0x1006e09b
cmp eax, 2
jne 0x1006e030
mov dword [edi - 0xc], 0x39800
mov dword [edi - 8], 0
inc dword [esi + 0xa8]
jmp 0x1006e09b
mov ecx, 0xc0
cmp ax, cx
jb 0x1006e09b
cmp dword [edi + 0x48], 0
mov byte [edi + 0x59], 1
jne 0x1006e053
mov dword [edi + 0x48], 0x1006aeb0
xor eax, eax
cmp dword [esi + 0x50], 0x64
mov dword [edi - 0x10], 0
sete al
add eax, 0xd
mov dword [edi - 4], eax
mov eax, dword [edx + 8]
cdq
and edx, 0x7f
add eax, edx
and eax, 0xffffff80
mov dword [edi - 0xc], eax
cmp dword [esi + 0x28], 1
jne 0x1006e087
mov dword [edi - 8], 0x14
jmp 0x1006e08e
mov dword [edi - 8], 0
mov dword [edi - 0xc], 0x1000
inc dword [esi + 0xac]
mov eax, dword [edi - 0xc]
mov dword [edi + 0x38], eax
mov eax, dword [ebx]
mov ebx, dword [edi + 0x50]
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x1006e101
mov ecx, dword [esi + 0x2c]
sub ecx, dword [edi - 4]
sub ecx, dword [edi - 8]
mov edx, dword [esi + 0x60]
test edx, edx
je 0x1006e0cc
mov eax, edx
imul ecx, edx
imul eax, dword [ebp - 4]
sub ecx, 3
mov dword [ebp - 4], eax
mov ebx, dword [esi + 0x30]
mov edx, ebx
imul edx, dword [ebp - 4]
imul ebx, ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 4], edx
sub ebx, dword [esi + 0xb0]
test ecx, ecx
je 0x1006e0f9
mov eax, ecx
imul ebx, ecx
imul eax, edx
sub ebx, dword [esi + 0xb8]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x1006e1e1
mov eax, dword [ebp - 0x18]
push 0
push dword [ebp - 4]
mov eax, dword [eax + 0xc]
cdq
push edx
push eax
call fcn.100a8850
lea ecx, [ebx - 1]
add eax, ecx
push 0
push ebx
adc edx, 0
push edx
push eax
call fcn.100a87a0
add dword [ebp - 0xc], eax
push 0x800
mov dword [edi + 0x40], 0x80
call dword [0x100b41a8]
add esp, 4
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x1006e148
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x10]
add edi, 0x78
mov ecx, dword [ebp - 0x14]
inc eax
mov ebx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [esi + 0x3c]
jl 0x1006df44
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x18f]
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esi + 0x98]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul edx, eax, 0x190
mov dword [esi + 0x18], edx
test ecx, ecx
je 0x1006e1bc
cmp edx, ecx
jle 0x1006e19c
or dword [esi + 8], 0x10
add ecx, 0x18f
mov eax, 0x51eb851f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x190
mov dword [esi + 0x18], eax
pop edi
mov dword [esi + 0xa0], 0x19bfcc0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xb4], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [esi + 8], 0x80000000
pop edi
mov dword [esi + 0xc], 0x15
pop esi
pop ebx
mov esp, ebp
pop ebp
ret