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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [ebp + 0x28]
push ebx
push esi
push edi
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x30]
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x34]
mov edi, esp
push dword [ebp + 0xc]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x108]
push eax
lea esi, [ebp + 0x10]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x128]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0xe4]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xb8]
push eax
push dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x24]
push ebx
mov eax, edi
lea edx, [esp + 0x44]
call fcn.0046e2b7
xor edx, edx
cmp eax, edx
jne 0x46e825
mov eax, dword [esp + 0x2c]
lea esi, [ebx + 0x4d4]
mov dword [esi], fcn.00441ea4
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x20], edi
and dword [esp + 0x20], 2
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov edi, 0x8000
je 0x46e555
mov ecx, dword [ebp + 0x20]
cmp ecx, edx
je 0x46e561
jle 0x46e555
cmp ecx, 2
jg 0x46e555
mov eax, dword [ebx + 0xa1c]
add eax, edi
and eax, 0xffff0000
cmp eax, 0x12c0000
jg 0x46e575
mov ecx, dword [ebp + 0x20]
cmp ecx, 2
je 0x46e582
xor eax, eax
jmp 0x46e585
mov eax, dword [ebx + 0xa1c]
add eax, edi
and eax, 0xffff0000
cmp eax, 0x320000
jle 0x46e55d
mov dword [esp + 0x28], 1
jmp 0x46e77d
or eax, 0xffffffff
cmp dword [esp + 0x20], edx
je 0x46e5f7
sub ecx, edx
je 0x46e5f4
dec ecx
je 0x46e5c5
dec ecx
jne 0x46e5f7
mov eax, dword [ebx + 0xa1c]
push 0x3552
sub eax, 0x300000
push eax
call fcn.0046f261
add eax, edi
sar eax, 0x10
add eax, 0xf
cmp eax, 0xf
jge 0x46e5bb
push 0xf
pop eax
cmp eax, 0x1e
jle 0x46e5f7
push 0x1e
pop eax
jmp 0x46e5f7
mov eax, dword [ebx + 0xa1c]
push 0xaaa
sub eax, 0x300000
push eax
call fcn.0046f261
add eax, edi
sar eax, 0x10
add eax, 3
cmp eax, 3
jge 0x46e5eb
push 3
pop eax
cmp eax, 6
jle 0x46e5f7
push 6
jmp 0x46e5c2
xor eax, eax
inc eax
mov dword [ebx + 0xc50], eax
mov eax, dword [ebp + 0x24]
push ebx
and eax, 3
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xa0]
push eax
push esi
lea eax, [ebx + 0x774]
push eax
call dword [ebx + 0x4c0]
mov dword [esp + 0x24], eax
test eax, eax
je 0x46e641
mov ecx, eax
and ecx, 0xff000000
cmp ecx, 0xf9000000
jne 0x46e825
mov ecx, dword [ebx + 0xc50]
test ecx, ecx
je 0x46e77d
test eax, eax
jne 0x46e77d
cmp dword [ebp + 0x20], 2
jne 0x46e689
push 5
lea eax, [ecx + 4]
cdq
pop esi
idiv esi
push 5
pop edi
mov esi, eax
mov eax, ecx
cdq
idiv edi
mov edi, esi
imul edi, edi, 5
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
sub edi, ecx
mov dword [esp + 0x30], eax
jmp 0x46e69d
mov edi, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ecx
mov esi, ecx
add dword [esp + 0x60], esi
and dword [esp + 0x14], 0
cmp dword [esp + 0x5c], 0
jbe 0x46e75f
cmp dword [ebp + 0x20], 2
jne 0x46e6e4
mov ecx, dword [esp + 0x14]
push 5
xor edx, edx
pop esi
lea eax, [ecx + edi]
div esi
push 5
xor edx, edx
mov esi, eax
mov eax, ecx
pop ecx
div ecx
cmp eax, esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
jb 0x46e6e0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jle 0x46e748
mov ecx, dword [esp + 0x60]
add ecx, 7
shr ecx, 3
dec ecx
js 0x46e748
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x50]
add esi, ecx
add esi, dword [esp + 0x48]
test ecx, ecx
jne 0x46e711
mov byte [esp + 0x10], cl
jmp 0x46e718
mov al, byte [esi - 1]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x46e741
mov dword [esp + 0x38], eax
mov al, byte [esi]
mov dl, al
add dl, dl
or al, dl
test byte [esp + 0x10], 0x80
je 0x46e735
or al, 1
shl byte [esp + 0x10], 1
dec dword [esp + 0x38]
mov byte [esi], al
jne 0x46e724
dec ecx
jns 0x46e6f8
mov esi, dword [esp + 0x18]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x5c]
jb 0x46e6b1
cmp dword [esp + 0x5c], 0
je 0x46e76d
mov eax, dword [esp + 0x78]
mov ecx, esi
shl ecx, 0x10
add dword [eax + 8], ecx
mov eax, dword [esp + 0x74]
cmp dword [eax + 0x20], 0
je 0x46e77d
shl esi, 0x10
add dword [eax + 0x20], esi
mov eax, dword [esp + 0x24]
and eax, 0xff000000
cmp eax, 0xf9000000
je 0x46e794
cmp dword [esp + 0x28], 1
jne 0x46e7f8
cmp dword [esp + 0x20], 0
mov eax, dword [ebx + 0xaa8]
push 7
mov dword [esp + 0x28], eax
pop ecx
je 0x46e7ae
mov dword [ebx + 0xaa8], ecx
mov eax, dword [ebp + 0x24]
sub esp, 0x1c
mov edi, esp
push ebx
lea esi, [ebx + 0x4b8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [ebx + 0x4d4]
push ecx
lea ecx, [ebx + 0x774]
and eax, 3
push ecx
call fcn.004703fb
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0xaa8], ecx
test eax, eax
jne 0x46e825
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x70]
call fcn.0046e3ef
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
mov dword [eax], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401301
mov esp, ebp
pop ebp
ret 0x30