Function at 0x5cfdfc
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.006ecb44
mov esi, dword [ebp - 0x10]
pop ecx
cmp dword [ebp + 0x10], eax
jb 0x5cfeaa
mov dword [ebp - 0x1c], edi
jmp 0x5cfebd
push esi
call fcn.006ecb44
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 0x5cff26
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
cmp dword [ebp + 0x1c], edx
je 0x5cfefd
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.005c5228
add esp, 0x24
jmp 0x5d0242
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.005c0df8
add esp, 0x44
jmp 0x5d0242
push esi
call fcn.006ecb44
mov ecx, dword [ebx + 8]
push 0
push 0
mov dword [ecx + 4], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.005d1a1c
mov eax, dword [ebx + 0xbc]
add esp, 0x10
inc eax
cmp edi, eax
jbe 0x5cffa8
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.005cf5a8
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.006f6638
add esp, 0x10
mov dword [ebx + 4], eax
test eax, eax
jne 0x5cff9b
push 0xffffffffffffffc0
pop eax
jmp 0x5d0242
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 0x5d01fe
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.006ecb44
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [0x5cb94c]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x1c]
jae 0x5cfff8
mov dword [ebp - 0x24], edx
jmp 0x5d0003
mov eax, dword [0x5cb948]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx + 4]
xor edx, edx
test edi, edi
mov edi, dword [0x5cb948]
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 0x5d007f
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 0x5d00fa
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x14]
push edx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.005ca4b4
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, esi
push eax
push 0x5c73bc
push dword [ebx]
call fcn.005cc0c0
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 0x5cffc8
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 0x5d0142
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.005c3b10
test eax, eax
pop ecx
mov ecx, dword [ebp - 8]
cmovne esi, ecx
test esi, esi
jne 0x5d017a
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 0x5d01e3
test esi, esi
jne 0x5d01a1
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.005c728c
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, dword [ebp - 0x1c]
jb 0x5d01bf
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.006f5c0c
add esp, 0xc
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [0x5cb948]
mov edx, dword [0x5cb94c]
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 0x5d01e6
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 0x5d0142
jmp 0x5d0200
xor edi, edi
cmp dword [ebp + 0x40], 0
je 0x5d023b
lea eax, [ebp - 0x8c]
push eax
call fcn.005d3d20
lea ebx, [edi + 4]
pop ecx
cmp ebx, dword [ebp + 0x10]
jbe 0x5d0222
push 0xffffffffffffffba
pop eax
mov esi, eax
jmp 0x5d023b
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.005c0fbc
add esp, 0xc
mov edi, ebx
test esi, esi
cmovne edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret