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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov edx, dword [ebp + 0x20]
xor eax, eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov ecx, edx
push 9
pop esi
sub esi, dword [ebp + 0x48]
cmp dword [ebp + 0x48], 9
cmova esi, eax
inc eax
sub ecx, esi
shl eax, cl
cmp esi, 9
sbb ecx, ecx
xor edi, edi
and ecx, eax
inc edi
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 0x28], ecx
lea ecx, [edx + 2]
shl edi, cl
xor edx, edx
mov dword [ebp + 0x48], eax
mov ecx, edi
shl ecx, 2
imul ecx, eax
mov eax, dword [ebp + 0x18]
div ecx
xor edx, edx
lea esi, [eax + 1]
mov eax, dword [ebp + 0x18]
div edi
mov edi, dword [ebp + 0x48]
mov ecx, esi
imul ecx, dword [ebp + 0x48]
inc eax
cmp eax, edi
cmovb edi, eax
cmp esi, 1
mov esi, dword [ebp + 0x18]
cmova edi, ecx
xor edx, edx
push esi
mov dword [ebp + 0x48], edi
lea eax, [esi - 1]
add eax, edi
div edi
mov edx, eax
and edx, 0x1ffff
cmp edx, 0x7fff
lea ecx, [eax + 0xffff]
cmovb eax, ecx
mov dword [ebp - 0x10], eax
call fcn.00ff271c
mov esi, dword [ebp - 0x10]
pop ecx
cmp dword [ebp + 0x10], eax
jb 0xfe6592
mov dword [ebp - 0x1c], edi
jmp 0xfe65a5
push esi
call fcn.00ff271c
pop ecx
mov ecx, eax
xor edx, edx
mov eax, dword [ebp + 0x10]
div ecx
mov dword [ebp - 0x1c], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
cmp edi, 1
jne 0xfe660e
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
cmp dword [ebp + 0x1c], edx
je 0xfe65e5
sub esp, 0xc
lea esi, [ebp + 0x3c]
mov edi, esp
push dword [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push eax
call fcn.00ff27e0
add esp, 0x24
jmp 0xfe692a
sub esp, 0x28
lea esi, [ebp + 0x20]
push 0xa
pop ecx
mov edi, esp
push edx
push edx
push dword [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00fe0b68
add esp, 0x44
jmp 0xfe692a
push esi
call fcn.00ff271c
mov ecx, dword [ebx + 8]
push 0
push 0
mov dword [ecx + 4], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00ffbbc8
mov eax, dword [ebx + 0xbc]
add esp, 0x10
inc eax
cmp edi, eax
jbe 0xfe6690
mov dword [ebp - 4], edi
lea esi, [ebx + 0xe4]
sub esp, 0xc
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
push dword [esi + 4]
call fcn.00ffe998
and dword [esi + 0xbc], 0
lea eax, [ebp - 4]
add esp, 4
lea esi, [ebx + 0xe4]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00feec10
add esp, 0x10
mov dword [ebx + 4], eax
test eax, eax
jne 0xfe6683
push 0xffffffffffffffc0
pop eax
jmp 0xfe692a
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0x48]
dec eax
mov dword [ebx + 0xbc], eax
and dword [ebp - 0x18], 0
xor esi, esi
test edi, edi
je 0xfe68e6
mov eax, dword [ebp + 0x18]
lea ecx, [edi - 1]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
cmovb ecx, eax
push ecx
mov dword [ebp - 8], ecx
call fcn.00ff271c
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [0xff7c40]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x1c]
jae 0xfe66e0
mov dword [ebp - 0x24], edx
jmp 0xfe66eb
mov eax, dword [0xff7c3c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx + 4]
xor edx, edx
test edi, edi
mov edi, dword [0xff7c3c]
push 0xa
cmovne edx, dword [ebp - 0x28]
mov dword [esi + eax], edi
mov dword [esi + eax + 4], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0xc]
sub ecx, edx
add ecx, dword [ebp + 0x14]
mov dword [esi + eax + 8], ecx
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dword [esi + eax + 0xc], edx
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 8]
mov dword [esi + eax + 0x10], edx
cmp dword [ebx + 0xc4], ecx
mov eax, dword [ebx + 4]
cmove ecx, dword [ebp + 0x1c]
mov dword [esi + eax + 0x64], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + eax + 0x70], ecx
and dword [esi + eax + 0x74], 0
add esi, 0x3c
mov edi, dword [ebx + 4]
add edi, esi
lea esi, [ebp + 0x20]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
test edi, edi
je 0xfe6767
mov eax, dword [ebx + 4]
and dword [esi + eax + 0x5c], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x20]
mov dword [esi + eax + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + eax + 0x18], ecx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
mov dword [esi + ecx + 0x68], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esi + ecx + 0x6c], eax
xor ecx, ecx
mov eax, dword [ebx + 4]
test edi, edi
sete cl
mov dword [esi + eax + 0x24], ecx
xor ecx, ecx
mov eax, dword [ebx + 4]
cmp edi, dword [ebp - 0x30]
sete cl
mov dword [esi + eax + 0x28], ecx
lea ecx, [ebx + 0x10]
mov eax, dword [ebx + 4]
and dword [esi + eax + 0x2c], 0
cmp dword [ebp + 0x40], 0
mov eax, dword [ebx + 4]
mov dword [esi + eax + 0x34], ecx
lea ecx, [ebx + 0x14]
mov eax, dword [ebx + 4]
mov dword [esi + eax + 0x38], ecx
je 0xfe67e2
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x14]
push edx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.01001d7c
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, esi
push eax
push 0xff4070
push dword [ebx]
call fcn.00feca24
mov eax, dword [ebp - 0x34]
add esp, 0xc
add dword [ebp - 0x14], eax
add esi, 0x78
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
sub eax, ecx
add dword [ebp - 0xc], ecx
inc edi
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], esi
cmp edi, dword [ebp + 0x48]
jb 0xfe66b0
xor esi, esi
xor edi, edi
and dword [ebp + 0x14], esi
xor ecx, ecx
mov dword [ebp + 0x18], ecx
mov eax, dword [ebx + 4]
cmp dword [ecx + eax + 0x2c], 0
je 0xfe682a
and dword [ecx + eax + 8], 0
mov eax, dword [ebx + 4]
mov eax, dword [ecx + eax + 0x1c]
push eax
mov dword [ebp - 8], eax
call fcn.00fec600
test eax, eax
pop ecx
mov ecx, dword [ebp - 8]
cmovne esi, ecx
test esi, esi
jne 0xfe6862
lea eax, [ecx + edi]
cmp eax, dword [ebp + 0x10]
push 0xffffffffffffffba
pop eax
cmova esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0xfe68cb
test esi, esi
jne 0xfe6889
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [ebp + 0x18]
push dword [ecx + eax + 0x14]
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
call fcn.010001dc
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, dword [ebp - 0x1c]
jb 0xfe68a7
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x18]
push dword [ecx + eax + 0x18]
push dword [ecx + eax + 0x14]
push dword [ebx + 8]
call fcn.00fe8f20
add esp, 0xc
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [0xff7c3c]
mov edx, dword [0xff7c40]
mov dword [ebx + eax + 0x14], ecx
mov ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ecx + eax + 0x18], edx
mov eax, dword [ebp + 0x14]
jmp 0xfe68ce
mov ecx, dword [ebp + 0x18]
add edi, dword [ebp - 8]
add ecx, 0x78
inc eax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x48]
jb 0xfe682a
jmp 0xfe68e8
xor edi, edi
cmp dword [ebp + 0x40], 0
je 0xfe6923
lea eax, [ebp - 0x8c]
push eax
call fcn.00febe0c
lea ebx, [edi + 4]
pop ecx
cmp ebx, dword [ebp + 0x10]
jbe 0xfe690a
push 0xffffffffffffffba
pop eax
mov esi, eax
jmp 0xfe6923
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push 4
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
call fcn.00fff2e0
add esp, 0xc
mov edi, ebx
test esi, esi
cmovne edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret