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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov edx, dword [ebp + 0xc]
fldz
push ebx
xor ebx, ebx
push esi
fstp qword [edx + 0x20]
push edi
mov dword [esp + 0x34], ebx
cmp dword [edx + 0x10], ebx
jle 0x4a6f5e
xor esi, esi
xor eax, eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], eax
nop
mov ecx, dword [edx + 0x14]
add ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x15d0]
add eax, esi
xor esi, esi
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], esi
cmp dword [ecx + 0x10], esi
jle 0x4a6f37
xor edx, edx
mov dword [esp + 0x24], edx
jmp 0x4a6c50
mov edi, dword [ecx + 0x14]
add edi, edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x7c], edi
cmp dword [edi + 0x18], 0
jle 0x4a6f1b
lea ebx, [edi + 0x38]
mov dword [esp + 0x2c], ebx
mov eax, dword [edi + 0x10]
xor edx, edx
imul eax, dword [edi + 0x14]
mov dword [esp + 0x58], edx
test eax, eax
jle 0x4a6ef6
xor esi, esi
mov dword [esp + 0x5c], esi
lea ecx, [ecx]
mov ecx, dword [ebx - 8]
add ecx, esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x78], ecx
mov eax, dword [ecx + 0x14]
imul eax, dword [ecx + 0x10]
test eax, eax
jle 0x4a6edb
xor esi, esi
mov dword [esp + 0x54], esi
mov edx, dword [ecx + 0x18]
add edx, esi
mov dword [esp + 0x4c], edx
mov edi, dword [edx + 0xc]
mov esi, dword [edx + 0x10]
sub edi, dword [ebx - 0x1c]
sub esi, dword [ebx - 0x18]
mov ebx, dword [ebx - 0xc]
test bl, 1
je 0x4a6cf0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax - 0x74]
sub eax, dword [ecx + edx - 0x7c]
mov edx, dword [esp + 0x4c]
add edi, eax
test bl, 2
je 0x4a6d0a
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx + ebx - 0x70]
sub eax, dword [ecx + ebx - 0x78]
add esi, eax
mov eax, dword [edx + 0x18]
sub eax, dword [edx + 0x10]
mov ebx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
push eax
push ebx
call fcn.004a4eb0
add esp, 0xc
test eax, eax
je 0x4a6f5e
imul esi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
add esi, edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x6c], ecx
lea edi, [eax + esi*4]
mov eax, dword [esp + 0x48]
cmp dword [eax + 0x14], 1
jne 0x4a6db5
test ebx, ebx
jle 0x4a6e65
mov eax, dword [esp + 0x28]
lea esi, [ecx*4]
shl eax, 2
mov dword [esp + 0x44], eax
test ecx, ecx
jle 0x4a6da9
mov eax, edi
mov dword [esp + 0x3c], ecx
mov esi, edx
mov dword [esp + 0x38], eax
mov eax, dword [eax]
lea esi, [esi + 4]
shl eax, 6
mov dword [esi - 4], eax
mov eax, dword [esp + 0x38]
add eax, 4
dec dword [esp + 0x3c]
mov dword [esp + 0x38], eax
jne 0x4a6d82
mov eax, dword [esp + 0x44]
lea esi, [ecx*4]
add edx, esi
add edi, eax
dec ebx
jne 0x4a6d72
jmp 0x4a6e65
test ebx, ebx
jle 0x4a6e65
mov eax, dword [esp + 0x28]
lea esi, [ecx*4]
shl eax, 2
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], esi
test ecx, ecx
jle 0x4a6e56
mov esi, edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x2c]
sub esp, 8
fld dword [eax]
fmul qword [0x50adb8]
fstp qword [esp]
call sub.MSVCRT.dll_floor
add esp, 8
call fcn.00417190
mov ecx, eax
mov eax, 0x4000000
cdq
idiv ecx
xor ecx, ecx
imul dword [esi]
mov esi, eax
and esi, 0x1000
add esi, eax
mov eax, dword [esp + 0x38]
adc ecx, edx
shrd esi, ecx, 0xd
sar esi, 5
mov dword [eax], esi
add eax, 4
mov esi, dword [esp + 0x3c]
add esi, 4
sar ecx, 0xd
dec dword [esp + 0x40]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], eax
jne 0x4a6de5
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
add edx, esi
add edi, eax
mov dword [esp + 0x44], edx
dec ebx
jne 0x4a6dd3
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x2c]
push eax
push dword [eax + 0x10]
mov eax, dword [esp + 0x28]
push dword [edi + 0x10]
fld dword [ebx]
sub esp, 8
mov eax, dword [eax + 0x10]
sub eax, dword [esp + 0x44]
dec eax
fstp qword [esp]
push dword [edi + 0x14]
push eax
push dword [esp + 0x50]
push dword [ebx - 0xc]
push dword [esp + 0x70]
push dword [ebp + 8]
call fcn.004a68b0
mov ecx, dword [esp + 0xa4]
add esp, 0x2c
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
inc edx
add esi, 0x30
mov dword [esp + 0x50], edx
mov eax, dword [ecx + 0x14]
imul eax, dword [ecx + 0x10]
mov dword [esp + 0x54], esi
cmp edx, eax
jl 0x4a6cb6
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
mov eax, dword [edi + 0x10]
inc edx
imul eax, dword [edi + 0x14]
add esi, 0x24
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
cmp edx, eax
jl 0x4a6c90
mov eax, dword [esp + 0x60]
add ebx, 0x20
inc eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], eax
cmp eax, dword [edi + 0x18]
jl 0x4a6c72
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
inc esi
add edx, 0x7c
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], edx
cmp esi, dword [ecx + 0x10]
jl 0x4a6c50
mov edx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
inc ebx
mov esi, dword [esp + 0x68]
add eax, 0x20
add esi, 0x434
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], esi
cmp ebx, dword [edx + 0x10]
jl 0x4a6c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret