Function at 0x46a92a
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.0046a787
xor edx, edx
cmp eax, edx
jne 0x46acf5
mov eax, dword [esp + 0x2c]
lea esi, [ebx + 0x4d4]
mov dword [esi], fcn.0041eb44
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 0x46aa25
mov ecx, dword [ebp + 0x20]
cmp ecx, edx
je 0x46aa31
jle 0x46aa25
cmp ecx, 2
jg 0x46aa25
mov eax, dword [ebx + 0xa1c]
add eax, edi
and eax, 0xffff0000
cmp eax, 0x12c0000
jg 0x46aa45
mov ecx, dword [ebp + 0x20]
cmp ecx, 2
je 0x46aa52
xor eax, eax
jmp 0x46aa55
mov eax, dword [ebx + 0xa1c]
add eax, edi
and eax, 0xffff0000
cmp eax, 0x320000
jle 0x46aa2d
mov dword [esp + 0x28], 1
jmp 0x46ac4d
or eax, 0xffffffff
cmp dword [esp + 0x20], edx
je 0x46aac7
sub ecx, edx
je 0x46aac4
dec ecx
je 0x46aa95
dec ecx
jne 0x46aac7
mov eax, dword [ebx + 0xa1c]
push 0x3552
sub eax, 0x300000
push eax
call fcn.0046b731
add eax, edi
sar eax, 0x10
add eax, 0xf
cmp eax, 0xf
jge 0x46aa8b
push 0xf
pop eax
cmp eax, 0x1e
jle 0x46aac7
push 0x1e
pop eax
jmp 0x46aac7
mov eax, dword [ebx + 0xa1c]
push 0xaaa
sub eax, 0x300000
push eax
call fcn.0046b731
add eax, edi
sar eax, 0x10
add eax, 3
cmp eax, 3
jge 0x46aabb
push 3
pop eax
cmp eax, 6
jle 0x46aac7
push 6
jmp 0x46aa92
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 0x46ab11
mov ecx, eax
and ecx, 0xff000000
cmp ecx, 0xf9000000
jne 0x46acf5
mov ecx, dword [ebx + 0xc50]
test ecx, ecx
je 0x46ac4d
test eax, eax
jne 0x46ac4d
cmp dword [ebp + 0x20], 2
jne 0x46ab59
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 0x46ab6d
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 0x46ac2f
cmp dword [ebp + 0x20], 2
jne 0x46abb4
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 0x46abb0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jle 0x46ac18
mov ecx, dword [esp + 0x60]
add ecx, 7
shr ecx, 3
dec ecx
js 0x46ac18
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x50]
add esi, ecx
add esi, dword [esp + 0x48]
test ecx, ecx
jne 0x46abe1
mov byte [esp + 0x10], cl
jmp 0x46abe8
mov al, byte [esi - 1]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x46ac11
mov dword [esp + 0x38], eax
mov al, byte [esi]
mov dl, al
add dl, dl
or al, dl
test byte [esp + 0x10], 0x80
je 0x46ac05
or al, 1
shl byte [esp + 0x10], 1
dec dword [esp + 0x38]
mov byte [esi], al
jne 0x46abf4
dec ecx
jns 0x46abc8
mov esi, dword [esp + 0x18]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x5c]
jb 0x46ab81
cmp dword [esp + 0x5c], 0
je 0x46ac3d
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 0x46ac4d
shl esi, 0x10
add dword [eax + 0x20], esi
mov eax, dword [esp + 0x24]
and eax, 0xff000000
cmp eax, 0xf9000000
je 0x46ac64
cmp dword [esp + 0x28], 1
jne 0x46acc8
cmp dword [esp + 0x20], 0
mov eax, dword [ebx + 0xaa8]
push 7
mov dword [esp + 0x28], eax
pop ecx
je 0x46ac7e
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.0046c8cb
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0xaa8], ecx
test eax, eax
jne 0x46acf5
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x70]
call fcn.0046a8bf
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.00401298
mov esp, ebp
pop ebp
ret 0x30