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

Disassembly:
sub esp, 0xf4
push ebx
mov ebx, dword [esp + 0xfc]
push ebp
push esi
push edi
push ebx
call fcn.004a0ba0
add esp, 4
test eax, eax
je 0x4a4b1e
mov esi, dword [esp + 0x10c]
push esi
call fcn.004a0ba0
add esp, 4
test eax, eax
je 0x4a4b1e
mov eax, dword [0xc688cc]
mov ecx, eax
push ecx
mov dword [esp + 0x14], eax
call fcn.004a0ae0
fstp dword [esp + 0x90]
mov eax, dword [0xc68e34]
lea ebp, [ebx + ebx*2]
lea edi, [esi + esi*2]
xor esi, esi
shl ebp, 4
add ebp, eax
shl edi, 4
add edi, eax
mov eax, dword [ebp + 4]
add esp, 4
cmp eax, esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x78], 0xc61c3c00
mov dword [esp + 0x6c], 0xc61c3c00
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x38], esi
jle 0x4a4b1e
mov edx, dword [ebp + 8]
mov eax, dword [0xc68e2c]
add edx, esi
mov eax, dword [eax + edx*4]
mov dword [esp + 0xac], eax
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0xc68e24]
lea ecx, [eax + eax*2]
mov al, byte [edx + ecx*8 + 4]
test al, 2
lea ecx, [edx + ecx*8]
mov dword [esp + 0x30], ecx
je 0x4a4243
mov eax, dword [edi + 4]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x7c], ebp
jle 0x4a423f
mov eax, dword [edi + 8]
mov edx, dword [0xc68e2c]
add eax, ebp
mov eax, dword [edx + eax*4]
mov dword [esp + 0x9c], eax
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0xc68e24]
lea eax, [eax + eax*2]
lea esi, [edx + eax*8]
test byte [esi + 4], 2
je 0x4a422b
mov edx, dword [ecx + 8]
xor eax, eax
test edx, edx
mov dword [esp + 0x70], eax
jle 0x4a422b
mov ecx, dword [ecx + 0xc]
mov edi, dword [esi + 8]
mov ebx, dword [0xc68e1c]
add ecx, eax
test edi, edi
mov ebp, dword [ebx + ecx*4]
mov dword [esp + 0x4c], 0
jle 0x4a41f5
mov eax, ebp
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [esi + 0xc]
lea ebx, [ebx + edx*4]
mov eax, dword [ebx]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
je 0x4a418f
mov eax, dword [esp + 0x4c]
inc eax
add ebx, 4
cmp eax, edi
mov dword [esp + 0x4c], eax
jl 0x4a4172
jmp 0x4a41f5
mov edi, dword [esp + 0x30]
push edi
call fcn.0049fda0
fstp dword [esp + 0x78]
push esi
call fcn.0049fda0
fld dword [esp + 0x7c]
fcomp dword [esp + 0x80]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4a41f3
fcom dword [esp + 0x6c]
fnstsw ax
test ah, 0x41
jne 0x4a41f3
mov eax, dword [esp + 0x74]
fstp dword [esp + 0x6c]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], ebp
jmp 0x4a41f5
fstp st(0)
mov eax, dword [esp + 0x4c]
cmp eax, dword [esi + 8]
jne 0x4a4218
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 8]
inc eax
cmp eax, edx
mov dword [esp + 0x70], eax
jl 0x4a4142
jmp 0x4a421c
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x108]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
inc ebp
cmp ebp, eax
mov dword [esp + 0x7c], ebp
jl 0x4a4101
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 4]
inc esi
cmp esi, eax
mov dword [esp + 0x38], esi
jl 0x4a40bb
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a4b1e
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a4b1e
mov esi, dword [esp + 0x10]
mov ecx, dword [0xc68e14]
mov eax, esi
cdq
mov edi, eax
xor edi, edx
sub edi, edx
xor edx, edx
test esi, esi
mov esi, dword [0xc68e04]
setl dl
lea ecx, [ecx + edi*8]
mov eax, dword [ecx + edx*4]
lea eax, [eax + eax*2]
fld dword [esi + eax*4]
mov ebp, dword [esi + eax*4 + 4]
lea eax, [esi + eax*4]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], eax
xor eax, eax
test edx, edx
sete al
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x48]
mov ecx, dword [ecx + eax*4]
lea ecx, [ecx + ecx*2]
fld dword [esi + ecx*4]
mov edx, dword [esi + ecx*4 + 4]
fld st(0)
lea eax, [esi + ecx*4]
mov eax, dword [eax + 8]
fadd st(2)
mov dword [esp + 0x58], edx
fld dword [esp + 0x58]
mov dword [esp + 0x5c], eax
fadd dword [esp + 0x64]
xor eax, eax
test ebp, ebp
setl al
fstp dword [esp + 0x24]
fld dword [esp + 0x5c]
fadd dword [esp + 0x68]
fstp dword [esp + 0x28]
fmul qword [0x4bc320]
fst dword [esp + 0x20]
fld dword [esp + 0x24]
fmul qword [0x4bc320]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
fmul qword [0x4bc320]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov esi, dword [ecx]
mov ecx, dword [0xc68e0c]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
xor eax, esi
fstp dword [esp + 0x14]
mov dword [esp + 0x1c], edx
lea edx, [eax + eax*4]
fsubrp st(1)
fld dword [esp + 0x58]
lea esi, [ecx + edx*4]
mov edx, dword [esp + 0x40]
fsub dword [esp + 0x64]
fld dword [esp + 0x5c]
xor eax, eax
fsub dword [esp + 0x68]
test edx, edx
mov edx, dword [esp + 0x3c]
setl al
fst dword [esp + 0xb8]
fmul dword [esi + 4]
fld st(1)
fmul dword [esi + 8]
xor eax, dword [edx]
fsubp st(1)
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x34], ecx
fstp dword [esp + 0x80]
lea edx, [esp + 0x80]
fld st(1)
push edx
fmul dword [esi + 8]
fld dword [esp + 0xbc]
fmul dword [esi]
fsubp st(1)
fstp dword [esp + 0x88]
fmul dword [esi]
fxch st(1)
fmul dword [esi + 4]
fsubp st(1)
fstp dword [esp + 0x8c]
call fcn.0042c7d0
fstp st(0)
add esp, 4
fld dword [esp + 0x80]
fmul dword [0x4bc2f0]
fld dword [esp + 0x20]
fsub st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x84]
fmul dword [0x4bc2f0]
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fsub dword [esp + 0x10]
fstp dword [esp + 0x24]
fld dword [esp + 0x88]
fmul dword [0x4bc2f0]
fstp dword [esp + 0x38]
fld dword [esp + 0x28]
fsub dword [esp + 0x38]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fadd st(1)
fstp dword [esp + 0x14]
fstp st(0)
fld dword [esp + 0x18]
fadd dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fadd dword [esp + 0x38]
fstp dword [esp + 0x1c]
fld dword [esi + 8]
call fcn.004aeed0
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 1
fild dword [esp + 0x2c]
fcomp qword [0x4bc330]
fnstsw ax
test ah, 1
jne 0x4a4465
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x34]
fld dword [eax + 8]
call fcn.004aeed0
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4bc330]
fnstsw ax
test ah, 1
je 0x4a4492
mov eax, 1
jmp 0x4a4494
xor eax, eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4a4b1e
test eax, eax
je 0x4a4620
mov eax, dword [esp + 0x34]
fld dword [eax]
fmul dword [esi]
fld dword [esi + 8]
fmul dword [eax + 8]
faddp st(1)
fld dword [esi + 4]
fmul dword [eax + 4]
faddp st(1)
fcomp qword [str.ffffff]
fnstsw ax
test ah, 0x41
jne 0x4a4620
fld dword [esp + 0xb8]
call fcn.004aeed0
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [str.ffffff]
fnstsw ax
test ah, 1
je 0x4a4620
call fcn.004a08e0
test eax, eax
je 0x4a4b1e
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ebp
mov dword [eax + 0x14], edx
mov dword [eax + 8], edi
mov dword [eax + 0x10], ecx
fld dword [esi]
fmul dword [0x4bc2e0]
mov ebp, 0xa
fsubr dword [esp + 0x14]
fstp dword [eax + 0x18]
fld dword [esi + 4]
fmul dword [0x4bc2e0]
fsubr dword [esp + 0x18]
fstp dword [eax + 0x1c]
fld dword [esi + 8]
mov dword [eax + 0x24], 6
fmul dword [0x4bc2e0]
mov word [eax + 0x28], bp
fsubr dword [esp + 0x1c]
fstp dword [eax + 0x20]
mov ecx, dword [0xc68810]
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0x2c], edx
mov ecx, dword [0xc68810]
mov dword [ecx + ebx*4], eax
inc dword [0xc68814]
call fcn.004a08e0
test eax, eax
je 0x4a4b1e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 8], edi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], edx
fld dword [esi]
fmul dword [0x4bc2e0]
mov ecx, dword [esp + 0x10c]
pop edi
fsubr dword [esp + 0x1c]
fstp dword [eax + 0x18]
fld dword [esi + 4]
fmul dword [0x4bc2e0]
fsubr dword [esp + 0x20]
fstp dword [eax + 0x1c]
fld dword [esi + 8]
mov word [eax + 0x28], bp
fmul dword [0x4bc2e0]
mov dword [eax + 0x24], 6
pop esi
pop ebp
fsubr dword [esp + 0x1c]
pop ebx
fstp dword [eax + 0x20]
mov edx, dword [0xc68810]
mov edx, dword [edx + ecx*4]
mov dword [eax + 0x2c], edx
mov edx, dword [0xc68810]
mov dword [edx + ecx*4], eax
inc dword [0xc68814]
mov eax, 1
add esp, 0xf4
ret
mov eax, dword [esp + 0x3c]
test byte [eax + 4], 4
je 0x4a4759
call fcn.004a08e0
test eax, eax
je 0x4a4b1e
mov ecx, dword [esp + 0x10c]
fld dword [esp + 0x1c]
fadd dword [0x4bc2f8]
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
fst dword [eax + 0x20]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x1c], edx
mov dword [eax + 4], ebp
mov dword [eax + 0x18], ecx
mov dword [eax + 8], edi
fld dword [esi]
fmul dword [0x4bd280]
mov ebp, 0xa
fsubr dword [esp + 0x14]
fstp dword [eax + 0x18]
fld dword [esi + 4]
fmul dword [0x4bd280]
fsubr dword [esp + 0x18]
fstp dword [eax + 0x1c]
fld dword [esi + 8]
mov dword [eax + 0x24], 6
fmul dword [0x4bd280]
mov word [eax + 0x28], bp
fsubr st(1)
fstp dword [eax + 0x20]
mov ecx, dword [0xc68810]
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0x2c], edx
fstp st(0)
mov ecx, dword [0xc68810]
mov dword [ecx + ebx*4], eax
inc dword [0xc68814]
call fcn.004a08e0
test eax, eax
je 0x4a4b1e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x28]
mov dword [eax], ebx
mov dword [eax + 8], edi
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x10c]
mov word [eax + 0x28], bp
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], 7
mov edx, dword [0xc68810]
mov edx, dword [edx + ecx*4]
mov dword [eax + 0x2c], edx
mov edx, dword [0xc68810]
mov dword [edx + ecx*4], eax
mov eax, dword [0xc68850]
pop edi
pop esi
inc eax
pop ebp
mov dword [0xc68850], eax
mov eax, 1
pop ebx
add esp, 0xf4
ret
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x1c], 0x47c34f80
jle 0x4a483f
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xc68e1c]
mov esi, dword [0xc68e04]
mov edi, dword [0xc68e14]
lea ebx, [edx + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, dword [edi + ecx*8]
lea eax, [eax + eax*2]
mov edx, dword [esi + eax*4 + 4]
fld dword [esi + eax*4]
lea eax, [esi + eax*4]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], eax
mov eax, dword [edi + ecx*8 + 4]
mov dword [esp + 0x64], edx
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
mov edx, dword [eax + 4]
fld dword [eax]
mov eax, dword [eax + 8]
faddp st(1)
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
fld dword [esp + 0x58]
fadd dword [esp + 0x64]
fstp dword [esp + 0x24]
fld dword [esp + 0x5c]
fadd dword [esp + 0x68]
fstp dword [esp + 0x28]
fmul qword [0x4bc320]
fld dword [esp + 0x24]
fmul qword [0x4bc320]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul qword [0x4bc320]
fst dword [esp + 0x28]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4a482b
mov edx, dword [esp + 0x24]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], ecx
jmp 0x4a482d
fstp st(0)
mov eax, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4a478c
mov eax, dword [ebp]
mov edx, dword [0xc68e0c]
lea ecx, [eax + eax*4]
fld dword [edx + ecx*4]
lea ebx, [edx + ecx*4]
fmul dword [0x4bc7ec]
push 0xffffffffffffffff
push 2
lea ecx, [esp + 0xa8]
fadd dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x9c]
push edx
fst dword [esp + 0xa0]
fld dword [ebx + 4]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x28]
fstp dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
fld dword [ebx + 8]
mov dword [esp + 0xb4], eax
fmul dword [0x4bc7ec]
lea eax, [esp + 0xf0]
push eax
fadd dword [esp + 0x30]
fxch st(1)
fstp dword [esp + 0xb4]
fst dword [esp + 0xbc]
fadd dword [0x4bc7ec]
fstp dword [esp + 0xac]
fld dword [esp + 0xbc]
fsub dword [0x4bc40c]
fstp dword [esp + 0xbc]
call fcn.004a9720
mov esi, eax
mov ecx, 9
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0xe0]
fadd dword [0x4bc318]
fstp dword [esp + 0xe0]
lea ecx, [esp + 0xd8]
push ecx
call fcn.004a9470
mov edx, dword [0xc68e34]
mov esi, eax
lea eax, [esi + esi*2]
shl eax, 4
mov edi, dword [eax + edx + 4]
add eax, edx
add esp, 0x18
xor ebp, ebp
test edi, edi
jle 0x4a499d
mov edx, dword [eax + 8]
mov eax, dword [0xc68e2c]
lea ecx, [eax + edx*4]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
mov ecx, dword [0xc68e24]
cdq
xor eax, edx
sub eax, edx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
test byte [eax + 4], 2
je 0x4a498d
mov eax, dword [eax]
lea edx, [eax + eax*4]
mov eax, dword [0xc68e0c]
fld dword [eax + edx*4 + 8]
lea eax, [eax + edx*4]
call fcn.004aeed0
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4bc330]
fnstsw ax
test ah, 1
jne 0x4a499d
mov ecx, dword [esp + 0x30]
inc ebp
add ecx, 4
cmp ebp, edi
mov dword [esp + 0x30], ecx
jl 0x4a4940
cmp ebp, edi
jl 0x4a4b1e
mov edi, dword [esp + 0x108]
cmp esi, edi
je 0x4a4b1e
push esi
push edi
call fcn.004a0c40
add esp, 8
test eax, eax
jne 0x4a4b1e
push edi
push esi
call fcn.004a0c40
add esp, 8
test eax, eax
jne 0x4a4b1e
fld dword [esp + 0x98]
fsub dword [esp + 0xcc]
fcomp dword [esp + 0x8c]
fnstsw ax
test ah, 1
je 0x4a4b1e
call fcn.004a08e0
test eax, eax
je 0x4a4b1e
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], edx
mov dword [eax], esi
mov dword [eax + 0x14], ecx
mov edx, dword [esp + 0xc4]
mov dword [eax + 0x18], edx
mov ecx, dword [esp + 0xc8]
mov dword [eax + 0x1c], ecx
mov edx, dword [esp + 0xcc]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], 6
mov ebp, 0xa
mov word [eax + 0x28], bp
mov ecx, dword [0xc68810]
mov edx, dword [ecx + edi*4]
mov dword [eax + 0x2c], edx
mov ecx, dword [0xc68810]
mov dword [ecx + edi*4], eax
inc dword [0xc68814]
call fcn.004a08e0
test eax, eax
je 0x4a4b1e
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0xc4]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0xc8]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0xcc]
mov dword [eax + 0x14], edx
fld dword [ebx]
fmul dword [0x4bc7ec]
pop edi
fsubr dword [esp + 0x10]
fstp dword [eax + 0x18]
fld dword [ebx + 4]
fmul dword [0x4bc7ec]
fsubr dword [esp + 0x14]
fstp dword [eax + 0x1c]
fld dword [ebx + 8]
mov word [eax + 0x28], bp
fmul dword [0x4bc7ec]
mov dword [eax + 0x24], 5
fsubr dword [esp + 0x18]
fadd dword [0x4bd1c0]
fstp dword [eax + 0x20]
mov ecx, dword [0xc68810]
mov edx, dword [ecx + esi*4]
mov dword [eax + 0x2c], edx
mov ecx, dword [0xc68810]
mov dword [ecx + esi*4], eax
mov eax, dword [0xc68828]
pop esi
inc eax
pop ebp
mov dword [0xc68828], eax
mov eax, 1
pop ebx
add esp, 0xf4
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf4
ret