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

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
push esi
call fcn.004ba250
add esp, 4
test eax, eax
je 0x4be27c
mov edi, dword [esp + 0x10c]
push edi
call fcn.004ba250
add esp, 4
test eax, eax
je 0x4be27c
mov eax, dword [0x12284e0]
mov ecx, eax
mov dword [esp + 0x28], eax
push ecx
call fcn.004ba130
mov ebp, dword [0x122f7b8]
lea ecx, [esi + esi*2]
fstp dword [esp + 0x98]
mov eax, dword [ebp + 0xd4]
lea edi, [edi + edi*2]
shl ecx, 4
add ecx, eax
xor esi, esi
shl edi, 4
add edi, eax
mov eax, dword [ecx + 4]
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x70], 0xc61c3c00
mov dword [esp + 0x78], 0xc61c3c00
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], esi
jle 0x4be27c
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 0xcc]
add edx, esi
mov eax, dword [eax + edx*4]
mov dword [esp + 0x84], eax
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0xc4]
lea ebx, [eax + edx*8]
mov dword [esp + 0x30], ebx
test byte [ebx + 4], 2
je 0x4bd962
mov edx, dword [edi + 4]
xor eax, eax
test edx, edx
mov dword [esp + 0x7c], eax
jle 0x4bd962
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0xcc]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc4]
mov dword [esp + 0x48], eax
cdq
xor eax, edx
sub eax, edx
lea eax, [eax + eax*2]
lea esi, [ecx + eax*8]
mov al, byte [ecx + eax*8 + 4]
test al, 2
je 0x4bd946
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x80], eax
jle 0x4bd946
jmp 0x4bd862
mov ebp, dword [0x122f7b8]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xbc]
mov edi, dword [esi + 8]
add edx, eax
test edi, edi
mov ebx, dword [ecx + edx*4]
mov dword [esp + 0x50], 0
jle 0x4bd90f
mov eax, ebx
cdq
mov ebp, eax
mov eax, dword [esi + 0xc]
xor ebp, edx
sub ebp, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp ebp, eax
je 0x4bd8af
mov eax, dword [esp + 0x50]
add ecx, 4
inc eax
cmp eax, edi
mov dword [esp + 0x50], eax
jl 0x4bd892
jmp 0x4bd90f
mov edi, dword [esp + 0x30]
push edi
call fcn.004b9cb0
fstp dword [esp + 0x78]
push esi
call fcn.004b9cb0
fld dword [esp + 0x7c]
fcomp dword [esp + 0x78]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4bd90d
fcom dword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4bd90d
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x70], ecx
fstp dword [esp + 0x78]
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], ebx
jmp 0x4bd90f
fstp st(0)
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + 8]
cmp ecx, eax
jne 0x4bdb67
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x80]
inc eax
mov ecx, dword [ebx + 8]
mov dword [esp + 0x80], eax
cmp eax, ecx
jl 0x4bd85c
mov ebp, dword [0x122f7b8]
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x7c]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x7c], eax
jl 0x4bd817
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
inc esi
cmp esi, eax
mov dword [esp + 0x3c], esi
jl 0x4bd7d2
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4be27c
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4be27c
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 0xa4]
mov eax, ebx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov edx, dword [ebp + 0xb4]
lea ecx, [edx + edi*8]
xor edx, edx
test ebx, ebx
setl dl
mov eax, dword [ecx + edx*4]
lea eax, [eax + eax*2]
fld dword [esi + eax*4]
mov ebx, dword [esi + eax*4 + 4]
lea eax, [esi + eax*4]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x38]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], eax
xor eax, eax
test edx, edx
sete al
mov ecx, dword [ecx + eax*4]
lea ecx, [ecx + ecx*2]
fld dword [esi + ecx*4]
mov edx, dword [esi + ecx*4 + 4]
lea eax, [esi + ecx*4]
fld st(0)
mov eax, dword [eax + 8]
mov dword [esp + 0x64], edx
fadd st(2)
fld dword [esp + 0x64]
fadd dword [esp + 0x58]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0xac]
mov ebp, dword [esp + 0x44]
fstp dword [esp + 0x20]
fld dword [esp + 0x68]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x24]
fmul qword [0x4e03e8]
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul qword [0x4e03e8]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul qword [0x4e03e8]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
xor ecx, ecx
test ebx, ebx
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fstp dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
fsub st(1)
mov esi, dword [edx]
mov edx, dword [esp + 0x40]
setl cl
mov ebx, dword [edx]
xor ecx, esi
fstp dword [esp + 0xb0]
lea ecx, [ecx + ecx*4]
lea edx, [esp + 0xa4]
fstp st(0)
fld dword [esp + 0x64]
fsub dword [esp + 0x58]
lea esi, [eax + ecx*4]
xor ecx, ecx
test ebp, ebp
setl cl
fstp dword [esp + 0xb4]
fld dword [esp + 0x68]
fsub dword [esp + 0x5c]
xor ecx, ebx
lea ecx, [ecx + ecx*4]
fstp dword [esp + 0xb8]
lea ebx, [eax + ecx*4]
lea eax, [esp + 0xb0]
push edx
push eax
push esi
call fcn.0042bf80
lea ecx, [esp + 0xb0]
push ecx
call fcn.0042bd60
fstp st(0)
fld dword [esp + 0xb4]
fmul dword [0x4e03b0]
fld dword [esp + 0x2c]
add esp, 0x10
fsub st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0xa8]
fmul dword [0x4e03b0]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fsub dword [esp + 0x28]
fstp dword [esp + 0x20]
fld dword [esp + 0xac]
fmul dword [0x4e03b0]
fstp dword [esp + 0x3c]
fld dword [esp + 0x24]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x24]
fld dword [esp + 0x10]
fadd st(1)
fstp dword [esp + 0x10]
fstp st(0)
fld dword [esp + 0x14]
fadd dword [esp + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x18]
fld dword [esi + 8]
call fcn.004cb970
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4e0408]
fnstsw ax
test ah, 1
je 0x4bdb7a
mov ebp, 1
jmp 0x4bdb7c
mov ebp, dword [0x122f7b8]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
jmp 0x4bd946
xor ebp, ebp
fld dword [ebx + 8]
call fcn.004cb970
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4e0408]
fnstsw ax
test ah, 1
je 0x4bdba5
mov eax, 1
jmp 0x4bdba7
xor eax, eax
test ebp, ebp
je 0x4be27c
test eax, eax
je 0x4bdd42
fld dword [ebx + 8]
fmul dword [esi + 8]
fld dword [ebx + 4]
fmul dword [esi + 4]
faddp st(1)
fld dword [ebx]
fmul dword [esi]
faddp st(1)
fcomp qword [0x4e10f8]
fnstsw ax
test ah, 0x41
jne 0x4bdd42
fld dword [esp + 0xb8]
call fcn.004cb970
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [0x4e10f8]
fnstsw ax
test ah, 1
je 0x4bdd42
call fcn.004b9c00
test eax, eax
je 0x4be27c
mov edx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ebx, dword [esp + 0x108]
fld dword [esi]
fmul dword [0x4e03a0]
mov ebp, 0xa
fsubr dword [esp + 0x10]
fstp dword [eax + 0x18]
fld dword [esi + 4]
fmul dword [0x4e03a0]
fsubr dword [esp + 0x14]
fstp dword [eax + 0x1c]
fld dword [esi + 8]
fmul dword [0x4e03a0]
mov dword [eax + 0x24], 6
mov word [eax + 0x28], bp
fsubr dword [esp + 0x18]
fstp dword [eax + 0x20]
mov ecx, dword [0x1228434]
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0x2c], edx
mov ecx, dword [0x1228434]
mov dword [ecx + ebx*4], eax
mov edx, dword [0x1228438]
inc edx
mov dword [0x1228438], edx
call fcn.004b9c00
test eax, eax
je 0x4be27c
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 8], edi
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
fld dword [esi]
fmul dword [0x4e03a0]
mov ecx, dword [esp + 0x10c]
pop edi
fsubr dword [esp + 0x18]
fstp dword [eax + 0x18]
fld dword [esi + 4]
fmul dword [0x4e03a0]
fsubr dword [esp + 0x1c]
fstp dword [eax + 0x1c]
fld dword [esi + 8]
fmul dword [0x4e03a0]
mov dword [eax + 0x24], 6
mov word [eax + 0x28], bp
pop esi
pop ebp
fsubr dword [esp + 0x18]
pop ebx
fstp dword [eax + 0x20]
mov edx, dword [0x1228434]
mov edx, dword [edx + ecx*4]
mov dword [eax + 0x2c], edx
mov edx, dword [0x1228434]
mov dword [edx + ecx*4], eax
mov eax, dword [0x1228438]
inc eax
mov dword [0x1228438], eax
mov eax, 1
add esp, 0xf4
ret
mov eax, dword [esp + 0x40]
test byte [eax + 4], 4
je 0x4bde8d
call fcn.004b9c00
test eax, eax
je 0x4be27c
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x38]
fld dword [esp + 0x18]
fadd dword [0x4e03b8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x24]
fst dword [eax + 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], edi
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
mov ebp, 0xa
fld dword [esi]
fmul dword [0x4e15b0]
fsubr dword [esp + 0x10]
fstp dword [eax + 0x18]
fld dword [esi + 4]
fmul dword [0x4e15b0]
fsubr dword [esp + 0x14]
fstp dword [eax + 0x1c]
fld dword [esi + 8]
fmul dword [0x4e15b0]
mov esi, dword [esp + 0x108]
mov dword [eax + 0x24], 6
mov word [eax + 0x28], bp
fsubr st(1)
fstp dword [eax + 0x20]
mov edx, dword [0x1228434]
fstp st(0)
mov ecx, dword [edx + esi*4]
mov dword [eax + 0x2c], ecx
mov edx, dword [0x1228434]
mov dword [edx + esi*4], eax
mov edx, dword [0x1228438]
inc edx
mov dword [0x1228438], edx
call fcn.004b9c00
test eax, eax
je 0x4be27c
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax], esi
mov dword [eax + 8], edi
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x10c]
mov dword [eax + 0x24], 7
mov word [eax + 0x28], bp
mov edx, dword [0x1228434]
pop edi
pop esi
mov edx, dword [edx + ecx*4]
pop ebp
mov dword [eax + 0x2c], edx
mov edx, dword [0x1228434]
pop ebx
mov dword [edx + ecx*4], eax
mov eax, dword [0x1228484]
inc eax
mov dword [0x1228484], eax
mov eax, 1
add esp, 0xf4
ret
mov eax, dword [esp + 0x34]
mov ebp, dword [0x122f7b8]
mov dword [esp + 0x18], 0x47c34f80
mov eax, dword [eax + 8]
test eax, eax
jle 0x4bdf7e
mov ecx, dword [esp + 0x34]
mov esi, dword [ebp + 0xb4]
mov edi, dword [ebp + 0xa4]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp + 0xbc]
lea ebx, [ecx + edx*4]
mov eax, dword [ebx]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, dword [esi + ecx*8]
lea edx, [eax + eax*2]
fld dword [edi + edx*4]
lea eax, [edi + edx*4]
mov edx, dword [edi + edx*4 + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + ecx*8 + 4]
mov dword [esp + 0x58], edx
lea edx, [eax + eax*2]
fld dword [edi + edx*4]
lea eax, [edi + edx*4]
faddp st(1)
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
fld dword [esp + 0x64]
fadd dword [esp + 0x58]
fstp dword [esp + 0x20]
fld dword [esp + 0x68]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x24]
fmul qword [0x4e03e8]
fld dword [esp + 0x20]
fmul qword [0x4e03e8]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul qword [0x4e03e8]
fst dword [esp + 0x24]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x4bdf6a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ecx
jmp 0x4bdf6c
fstp st(0)
mov eax, dword [esp + 0x28]
add ebx, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x4bdeca
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push 2
mov eax, dword [ecx]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xac]
fld dword [eax + edx*4]
fmul dword [0x4e0aec]
lea ebx, [eax + edx*4]
lea edx, [esp + 0x90]
lea eax, [esp + 0xa0]
push edx
fadd dword [esp + 0x1c]
push eax
fst dword [esp + 0xa8]
fld dword [ebx + 4]
fmul dword [0x4e0aec]
fadd dword [esp + 0x24]
fstp dword [esp + 0xac]
fld dword [ebx + 8]
fmul dword [0x4e0aec]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0xf0]
fadd dword [esp + 0x28]
fxch st(1)
fstp dword [esp + 0x98]
push ecx
fst dword [esp + 0xa4]
fadd dword [0x4e0aec]
fstp dword [esp + 0xb4]
fld dword [esp + 0xa4]
fsub dword [0x4e0588]
fstp dword [esp + 0xa4]
call fcn.004c3280
mov ecx, 9
mov esi, eax
lea edi, [esp + 0xd0]
lea edx, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0xe0]
fadd dword [0x4e03d0]
fstp dword [esp + 0xe0]
push edx
call fcn.004c3040
mov ecx, dword [0x122f7b8]
mov esi, eax
add esp, 0x18
xor ebp, ebp
mov eax, dword [ecx + 0xd4]
lea edx, [esi + esi*2]
shl edx, 4
add eax, edx
mov edi, dword [eax + 4]
test edi, edi
jle 0x4be0f4
mov edx, dword [ecx + 0xc4]
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0xcc]
lea eax, [edx + eax*4]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
test byte [eax + 4], 2
je 0x4be0e4
mov eax, dword [eax]
mov ecx, dword [ecx + 0xac]
lea eax, [eax + eax*4]
fld dword [ecx + eax*4 + 8]
lea eax, [ecx + eax*4]
call fcn.004cb970
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fcomp qword [0x4e0408]
fnstsw ax
test ah, 1
jne 0x4be0f4
mov ecx, dword [0x122f7b8]
mov edx, dword [esp + 0x30]
inc ebp
add edx, 4
cmp ebp, edi
mov dword [esp + 0x30], edx
jl 0x4be092
cmp ebp, edi
jl 0x4be27c
mov edi, dword [esp + 0x108]
cmp esi, edi
je 0x4be27c
push esi
push edi
call fcn.004ba310
add esp, 8
test eax, eax
jne 0x4be27c
push edi
push esi
call fcn.004ba310
add esp, 8
test eax, eax
jne 0x4be27c
fld dword [esp + 0xa0]
fsub dword [esp + 0xcc]
fcomp dword [esp + 0x94]
fnstsw ax
test ah, 1
je 0x4be27c
call fcn.004b9c00
test eax, eax
je 0x4be27c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [eax], esi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0xc8]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0xcc]
mov ebp, 0xa
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], 6
mov word [eax + 0x28], bp
mov edx, dword [0x1228434]
mov ecx, dword [edx + edi*4]
mov dword [eax + 0x2c], ecx
mov edx, dword [0x1228434]
mov dword [edx + edi*4], eax
mov edx, dword [0x1228438]
inc edx
mov dword [0x1228438], edx
call fcn.004b9c00
test eax, eax
je 0x4be27c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0xc8]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0xcc]
mov dword [eax + 0x14], ecx
pop edi
fld dword [ebx]
fmul dword [0x4e0aec]
fsubr dword [esp + 0xc]
fstp dword [eax + 0x18]
fld dword [ebx + 4]
fmul dword [0x4e0aec]
fsubr dword [esp + 0x10]
fstp dword [eax + 0x1c]
fld dword [ebx + 8]
fmul dword [0x4e0aec]
mov dword [eax + 0x24], 5
mov word [eax + 0x28], bp
fsubr dword [esp + 0x14]
fadd dword [0x4e0444]
fstp dword [eax + 0x20]
mov edx, dword [0x1228434]
mov ecx, dword [edx + esi*4]
mov dword [eax + 0x2c], ecx
mov edx, dword [0x1228434]
mov dword [edx + esi*4], eax
mov eax, dword [0x1228450]
inc eax
pop esi
mov dword [0x1228450], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0xf4
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf4
ret