Function at 0x4fb24c
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.0050dd2c
mov esi, dword [ebp - 0x10]
pop ecx
cmp dword [ebp + 0x10], eax
jb 0x4fb2fa
mov dword [ebp - 0x1c], edi
jmp 0x4fb30d
push esi
call fcn.0050dd2c
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 0x4fb376
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
cmp dword [ebp + 0x1c], edx
je 0x4fb34d
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.005b5d40
add esp, 0x24
jmp 0x4fb692
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.005b1d80
add esp, 0x44
jmp 0x4fb692
push esi
call fcn.0050dd2c
mov ecx, dword [ebx + 8]
push 0
push 0
mov dword [ecx + 4], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.005ae740
mov eax, dword [ebx + 0xbc]
add esp, 0x10
inc eax
cmp edi, eax
jbe 0x4fb3f8
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.005062f4
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.0050b7c0
add esp, 0x10
mov dword [ebx + 4], eax
test eax, eax
jne 0x4fb3eb
push 0xffffffffffffffc0
pop eax
jmp 0x4fb692
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 0x4fb64e
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.0050dd2c
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [0x5b5c24]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x1c]
jae 0x4fb448
mov dword [ebp - 0x24], edx
jmp 0x4fb453
mov eax, dword [0x5b5c20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx + 4]
xor edx, edx
test edi, edi
mov edi, dword [0x5b5c20]
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 0x4fb4cf
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 0x4fb54a
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x14]
push edx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.005b4db0
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, esi
push eax
push 0x5b582c
push dword [ebx]
call fcn.00511970
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 0x4fb418
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 0x4fb592
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.004ff908
test eax, eax
pop ecx
mov ecx, dword [ebp - 8]
cmovne esi, ecx
test esi, esi
jne 0x4fb5ca
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 0x4fb633
test esi, esi
jne 0x4fb5f1
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.005b29fc
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, dword [ebp - 0x1c]
jb 0x4fb60f
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.0050619c
add esp, 0xc
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [0x5b5c20]
mov edx, dword [0x5b5c24]
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 0x4fb636
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 0x4fb592
jmp 0x4fb650
xor edi, edi
cmp dword [ebp + 0x40], 0
je 0x4fb68b
lea eax, [ebp - 0x8c]
push eax
call fcn.0050ddc8
lea ebx, [edi + 4]
pop ecx
cmp ebx, dword [ebp + 0x10]
jbe 0x4fb672
push 0xffffffffffffffba
pop eax
mov esi, eax
jmp 0x4fb68b
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.0050b798
add esp, 0xc
mov edi, ebx
test esi, esi
cmovne edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret