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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test bl, 0x10
push edi
mov dword [esp + 0x98], 1
jne 0x4beb64
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00505e20
add esp, 8
jmp 0x4beb70
mov edi, dword [ebp + 8]
mov word [edi + 0xe8], 0
cmp word [edi + 0xe8], 0
je 0x4beb88
test bl, 8
je 0x4beb88
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi]
mov ecx, dword [edi + 4]
mov eax, ebx
mov dword [esp + 0x2c], ecx
shr eax, 8
and eax, 1
mov edx, dword [edi + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
fld qword [esp + 0x28]
fcomp qword [esi + 0x58]
mov dword [esp + 0x24], eax
xor edi, edi
mov dword [esp + 0x94], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x9c], edi
fnstsw ax
test ah, 1
je 0x4bec13
test ebx, 0x100000
je 0x4bebf8
fld qword [esp + 0x28]
fchs
fld qword [0x550f30]
call fcn.00547caa
fsubr qword [0x550f30]
fstp qword [esp + 0x28]
jmp 0x4bec57
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x94], 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jmp 0x4bec57
fld qword [esp + 0x28]
fcomp qword [esi + 0x60]
fnstsw ax
test ah, 0x41
jne 0x4bec57
test ebx, 0x100000
je 0x4bec3e
fld qword [esp + 0x28]
fld qword [0x550f30]
call fcn.00547caa
fstp qword [esp + 0x28]
jmp 0x4bec57
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x94], 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
fld qword [esp + 0x20]
fcomp qword [esi + 0x68]
fnstsw ax
test ah, 1
je 0x4beca6
test ebx, 0x200000
je 0x4bec8a
fld qword [esp + 0x20]
fchs
fld qword [0x550f30]
call fcn.00547caa
fsubr qword [0x550f30]
fstp qword [esp + 0x20]
jmp 0x4beceb
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
mov edi, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x24], eax
jmp 0x4beceb
fld qword [esp + 0x20]
fcomp qword [esi + 0x70]
fnstsw ax
test ah, 0x41
jne 0x4beceb
test ebx, 0x200000
je 0x4becd1
fld qword [esp + 0x20]
fld qword [0x550f30]
call fcn.00547caa
fstp qword [esp + 0x20]
jmp 0x4beceb
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
mov edi, 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x4becfa
test edi, edi
je 0x4bed02
mov eax, dword [ebp + 0x10]
or al, 2
mov dword [ebp + 0x10], eax
push 0
push esi
call fcn.004bfee0
add esp, 8
test eax, eax
jne 0x4bf99f
movsx eax, word [esi + 4]
mov edx, dword [0x57e2ac]
mov ebx, dword [ebp + 0x10]
lea ecx, [eax + 1]
push edx
mov dword [esp + 0x94], ecx
mov edx, dword [0x57e298]
movsx ecx, word [esi + 6]
inc ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [0x57e29c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esp + 0x38]
push ebx
push eax
movsx eax, word [esi + 8]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.004bfa70
mov ecx, dword [0x57e2b0]
mov edx, dword [0x57e2a8]
mov edi, eax
mov eax, dword [0x57e2a4]
push ecx
push edx
movsx ecx, word [esi + 6]
movsx edx, word [esi + 0xa]
push eax
mov eax, dword [esi + 0x1c]
push ebx
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
mov dword [esp + 0x84], edi
call fcn.004bfa70
add esp, 0x48
cmp edi, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x4bf99f
cmp dword [esp + 0x1c], 0xffffffff
je 0x4bf99f
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x58], 0
test ebx, ebx
jle 0x4beec9
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], 0
test eax, eax
jle 0x4beea4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
add eax, ecx
xor ebx, ebx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add edx, eax
push edx
mov edx, dword [ebp + 0xc]
push ecx
lea eax, [esp + 0x188]
push edx
push eax
call fcn.004be9a0
mov ecx, 0xc
mov esi, eax
mov eax, dword [esp + 0x58]
lea edi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x160]
mov ecx, dword [0x57e2b8]
add esp, 0x10
mov edx, dword [eax + ecx]
fstp qword [edx + ebx]
mov ecx, dword [0x57e2b8]
fld qword [esp + 0x158]
mov edx, dword [eax + ecx]
fstp qword [edx + ebx + 8]
mov ecx, dword [0x57e2b8]
fld qword [esp + 0x160]
mov edx, dword [eax + ecx]
mov eax, dword [esp + 0x6c]
test eax, eax
fstp qword [edx + ebx + 0x10]
je 0x4bee8c
mov eax, dword [0x57e2a0]
mov ecx, dword [esp + 0x48]
fld qword [esp + 0x168]
mov edx, dword [ecx + eax]
mov eax, dword [esp + 0x60]
fstp qword [edx + eax*8]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
inc eax
add ebx, 0x18
cmp eax, ecx
mov dword [esp + 0x60], eax
jl 0x4bedf7
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x90]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], edx
jl 0x4bedd3
mov ebx, ecx
cmp dword [esp + 0x98], 1
jne 0x4bf02f
test ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
jle 0x4befd9
mov eax, dword [0x57e2a0]
mov edx, dword [0x57e2b8]
mov esi, dword [0x57e298]
sub edx, eax
mov edi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], edx
mov dword [esp + 0x1c], ebx
xor ecx, ecx
test eax, eax
jle 0x4befc4
mov edx, dword [edx + edi]
mov ebx, dword [0x57e2a4]
lea eax, [ecx*8]
fld qword [eax + ebx]
mov ebx, dword [esp + 0x6c]
fmul qword [esi]
test ebx, ebx
je 0x4bef7d
add eax, dword [edi]
fmul qword [eax]
fld st(0)
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fld st(0)
fmul qword [edx]
mov eax, dword [esp + 0x54]
inc ecx
add edx, 0x18
cmp ecx, eax
fadd qword [esp + 0x78]
fstp qword [esp + 0x78]
fld st(0)
fmul qword [edx - 0x10]
fadd qword [esp + 0x80]
fstp qword [esp + 0x80]
fmul qword [edx - 8]
fadd qword [esp + 0x88]
fstp qword [esp + 0x88]
jl 0x4bef55
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
add esi, 8
add edi, 4
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x4bef4c
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4bf01e
fld qword [esp + 0x10]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x4bf01e
fld qword [esp + 0x78]
fdiv qword [esp + 0x10]
mov eax, dword [ebp + 8]
fstp qword [eax + 0x10]
fld qword [esp + 0x80]
fdiv qword [esp + 0x10]
fstp qword [eax + 0x18]
fld qword [esp + 0x88]
fdiv qword [esp + 0x10]
fstp qword [eax + 0x20]
jmp 0x4bf02f
mov ecx, dword [ebp + 8]
lea esi, [esp + 0x78]
lea edi, [ecx + 0x10]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
test byte [ebp + 0x10], 6
je 0x4bf9cc
fld qword [0x550f20]
fld qword [0x550f20]
fld qword [0x550f20]
fld qword [0x550f20]
test ebx, ebx
fst qword [esp + 0x120]
fld qword [0x550f20]
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
fst qword [esp + 0x70]
fld qword [0x550f20]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
fst qword [esp + 0x58]
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
jle 0x4bf7b8
mov eax, dword [0x57e2a0]
mov edi, dword [0x57e2b8]
mov edx, dword [0x57e298]
mov dword [esp + 0x48], eax
sub edi, eax
mov eax, dword [0x57e2ac]
sub eax, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x40], eax
mov eax, dword [0x57e29c]
sub eax, edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x57e2a4]
mov ecx, dword [esp + 0x54]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x60], ebx
jle 0x4bf451
mov ecx, dword [esp + 0x48]
mov esi, dword [ebp + 0x10]
and esi, 4
mov ecx, dword [edi + ecx]
mov edi, dword [0x57e2b0]
sub edi, eax
mov dword [esp + 0x30], edi
mov edi, dword [0x57e2a8]
sub edi, eax
jmp 0x4bf21c
mov eax, dword [0x57e2a4]
lea eax, [eax + ebx*8]
mov ebx, dword [esp + 0x1c]
add ebx, edx
test esi, esi
fld qword [ebx]
fmul qword [eax]
fld qword [edi + eax]
fmul qword [edx]
fstp qword [esp + 0x70]
je 0x4bf268
mov ebx, dword [esp + 0x40]
fld qword [ebx + edx]
fmul qword [eax]
mov ebx, dword [esp + 0x30]
fstp qword [esp + 0xa0]
fld qword [ebx + eax]
fmul qword [edx]
fstp qword [esp + 0xb8]
fld qword [edi + eax]
mov eax, dword [esp + 0x1c]
add eax, edx
fmul qword [eax]
fstp qword [esp + 0xb0]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4bf2e6
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x60]
test esi, esi
mov eax, dword [eax]
fmul qword [eax + ebx*8]
fld qword [esp + 0x70]
fmul qword [eax + ebx*8]
lea eax, [eax + ebx*8]
fstp qword [esp + 0x70]
fld st(0)
faddp st(7)
fld qword [esp + 0x70]
faddp st(6)
je 0x4bf2ea
fld qword [esp + 0xa0]
fmul qword [eax]
fstp qword [esp + 0xa0]
fld qword [esp + 0xb8]
fmul qword [eax]
fstp qword [esp + 0xb8]
fld qword [esp + 0xb0]
fmul qword [eax]
fstp qword [esp + 0xb0]
fld qword [esp + 0xa0]
faddp st(5)
fld qword [esp + 0xb8]
faddp st(3)
fld qword [esp + 0xb0]
faddp st(2)
jmp 0x4bf2ea
mov ebx, dword [esp + 0x60]
fld st(0)
fmul qword [ecx]
test esi, esi
fadd qword [esp + 0xc0]
fstp qword [esp + 0xc0]
fld st(0)
fmul qword [ecx + 8]
fadd qword [esp + 0xc8]
fstp qword [esp + 0xc8]
fmul qword [ecx + 0x10]
fadd qword [esp + 0xd0]
fstp qword [esp + 0xd0]
fld qword [esp + 0x70]
fmul qword [ecx]
fadd qword [esp + 0xd8]
fstp qword [esp + 0xd8]
fld qword [esp + 0x70]
fmul qword [ecx + 8]
fadd qword [esp + 0xe0]
fstp qword [esp + 0xe0]
fld qword [esp + 0x70]
fmul qword [ecx + 0x10]
fadd qword [esp + 0xe8]
fstp qword [esp + 0xe8]
je 0x4bf42f
fld qword [esp + 0xa0]
fmul qword [ecx]
faddp st(3)
fld qword [esp + 0xa0]
fmul qword [ecx + 8]
fadd qword [esp + 0x128]
fstp qword [esp + 0x128]
fld qword [esp + 0xa0]
fmul qword [ecx + 0x10]
fadd qword [esp + 0x130]
fstp qword [esp + 0x130]
fld qword [esp + 0xb8]
fmul qword [ecx]
fadd qword [esp + 0xf0]
fstp qword [esp + 0xf0]
fld qword [esp + 0xb8]
fmul qword [ecx + 8]
fadd qword [esp + 0xf8]
fstp qword [esp + 0xf8]
fld qword [esp + 0xb8]
fmul qword [ecx + 0x10]
fadd qword [esp + 0x100]
fstp qword [esp + 0x100]
fld qword [esp + 0xb0]
fmul qword [ecx]
fadd qword [esp + 0x108]
fstp qword [esp + 0x108]
fld qword [esp + 0xb0]
fmul qword [ecx + 8]
fadd qword [esp + 0x110]
fstp qword [esp + 0x110]
fld qword [esp + 0xb0]
fmul qword [ecx + 0x10]
fadd qword [esp + 0x118]
fstp qword [esp + 0x118]
mov eax, dword [esp + 0x54]
inc ebx
add ecx, 0x18
cmp ebx, eax
mov dword [esp + 0x60], ebx
jl 0x4bf217
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x58]
mov eax, dword [0x57e2a4]
jmp 0x4bf454
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
add edx, 8
add esi, 4
dec ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], ecx
jne 0x4bf1e2
fxch st(2)
fst qword [esp + 0x120]
fxch st(2)
fstp qword [esp + 0x58]
fstp qword [esp + 0x70]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4bf7c4
fld qword [esp + 0x10]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x4bf7c4
fld qword [esp + 0x10]
fmul qword [esp + 0x10]
lea eax, [ebx + 0x40]
mov dword [esp + 0x3c], eax
fstp qword [esp + 0x30]
fld qword [esp + 0xc0]
fmul qword [esp + 0x10]
fld st(4)
fmul qword [esp + 0x78]
fsubp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fdiv qword [esp + 0x30]
fstp qword [eax]
fld qword [esp + 0xc8]
fmul qword [esp + 0x10]
fld st(4)
fmul qword [esp + 0x80]
lea eax, [ebx + 0x58]
mov dword [esp + 0x1c], eax
fsubp st(1)
fst qword [esp + 0x60]
fdiv qword [esp + 0x30]
fstp qword [ebx + 0x48]
fld qword [esp + 0xd0]
fmul qword [esp + 0x10]
fld st(4)
fmul qword [esp + 0x88]
fsubp st(1)
fst qword [esp + 0x138]
fdiv qword [esp + 0x30]
fstp qword [ebx + 0x50]
fld qword [esp + 0xd8]
fmul qword [esp + 0x10]
fld st(3)
fmul qword [esp + 0x78]
fsubp st(1)
fstp qword [esp + 0x148]
fld qword [esp + 0x148]
fdiv qword [esp + 0x30]
fstp qword [eax]
fld qword [esp + 0xe0]
fmul qword [esp + 0x10]
fld st(3)
fmul qword [esp + 0x80]
test byte [ebp + 0x10], 4
fsubp st(1)
fst qword [esp + 0x140]
fdiv qword [esp + 0x30]
fstp qword [ebx + 0x60]
fld qword [esp + 0xe8]
fmul qword [esp + 0x10]
fld st(3)
fmul qword [esp + 0x88]
fsubp st(1)
fst qword [esp + 0xa8]
fdiv qword [esp + 0x30]
fstp qword [ebx + 0x68]
je 0x4bf838
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
fstp qword [esp + 0x40]
fmul qword [esp + 0x10]
fld st(1)
fmul qword [esp + 0x78]
fsubp st(1)
fmul qword [esp + 0x30]
fld st(3)
fmul qword [esp + 0x48]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0x70]
fld qword [esp + 0x128]
fmul qword [esp + 0x10]
fld st(1)
fmul qword [esp + 0x80]
fsubp st(1)
fmul qword [esp + 0x30]
fld st(3)
fmul qword [esp + 0x60]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0x78]
fld qword [esp + 0x130]
fmul qword [esp + 0x10]
fxch st(1)
fmul qword [esp + 0x88]
fsubp st(1)
fmul qword [esp + 0x30]
fld st(2)
fmul qword [esp + 0x138]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0x80]
fld qword [esp + 0xf0]
fmul qword [esp + 0x10]
fld qword [esp + 0x70]
fmul qword [esp + 0x78]
fsubp st(1)
fmul qword [esp + 0x30]
fld st(1)
fmul qword [esp + 0x148]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0x88]
fld qword [esp + 0xf8]
fmul qword [esp + 0x10]
fld qword [esp + 0x70]
fmul qword [esp + 0x80]
fsubp st(1)
fmul qword [esp + 0x30]
fld st(1)
fmul qword [esp + 0x140]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0x90]
fld qword [esp + 0x100]
fmul qword [esp + 0x10]
fld qword [esp + 0x70]
fmul qword [esp + 0x88]
fsubp st(1)
fmul qword [esp + 0x30]
fld qword [esp + 0xa8]
fmul st(2)
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0x98]
fld st(0)
fmul qword [esp + 0xc0]
fld qword [esp + 0x108]
fmul qword [esp + 0x10]
faddp st(1)
fld qword [esp + 0xd8]
fmul st(3)
fld qword [esp + 0x58]
fmul qword [esp + 0x78]
faddp st(1)
fsubp st(1)
fmul qword [esp + 0x30]
fld st(1)
fmul qword [esp + 0x48]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0xa0]
fld st(0)
fmul qword [esp + 0xc8]
fld qword [esp + 0x110]
fmul qword [esp + 0x10]
faddp st(1)
fld qword [esp + 0xe0]
fmul st(3)
fld qword [esp + 0x58]
fmul qword [esp + 0x80]
faddp st(1)
fsubp st(1)
fmul qword [esp + 0x30]
fld st(1)
fmul qword [esp + 0x60]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0xa8]
fld st(0)
fmul qword [esp + 0xd0]
fld qword [esp + 0x118]
fmul qword [esp + 0x10]
faddp st(1)
fld qword [esp + 0xe8]
fmul st(3)
fld qword [esp + 0x58]
fmul qword [esp + 0x88]
faddp st(1)
fsubp st(1)
fmul qword [esp + 0x30]
fxch st(1)
fmul qword [esp + 0x138]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv qword [esp + 0x40]
fstp qword [ebx + 0xb0]
jmp 0x4bf83e
mov ebx, dword [ebp + 8]
fstp st(0)
fstp st(0)
jmp 0x4bf484
mov al, byte [ebp + 0x10]
lea edi, [ebx + 0x40]
mov ecx, 6
lea esi, [esp + 0xc0]
fstp st(0)
mov dword [esp + 0x3c], edi
rep movsd dword es:[edi], dword [esi]
fstp st(0)
fstp st(0)
fstp st(0)
lea edi, [ebx + 0x58]
mov ecx, 6
lea esi, [esp + 0xd8]
mov dword [esp + 0x1c], edi
test al, 4
rep movsd dword es:[edi], dword [esi]
je 0x4bf840
lea edi, [ebx + 0x70]
mov ecx, 6
lea esi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x88]
mov ecx, 6
lea esi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0xa0]
mov ecx, 6
lea esi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
jmp 0x4bf840
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
cmp dword [esp + 0x98], 1
jne 0x4bf9ab
mov esi, dword [esp + 0x3c]
push esi
call fcn.00418eb0
mov edi, dword [esp + 0x20]
fstp qword [esp + 0xac]
push edi
call fcn.00418eb0
fmul qword [0x550f38]
add esp, 8
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 0x41
jne 0x4bf8b6
mov esi, dword [ebp + 0xc]
fld qword [esi + 0x70]
fadd qword [esi + 0x68]
fmul qword [0x550f68]
fcomp qword [esp + 0x20]
fld qword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x4bf8aa
fsub qword [0x555fe0]
fstp qword [esp + 0x20]
jmp 0x4bf914
fadd qword [0x555fe0]
fstp qword [esp + 0x20]
jmp 0x4bf914
push edi
call fcn.00418eb0
fstp qword [esp + 0xac]
push esi
call fcn.00418eb0
fmul qword [0x550f38]
add esp, 8
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 0x41
jne 0x4bf9ab
mov esi, dword [ebp + 0xc]
fld qword [esi + 0x60]
fadd qword [esi + 0x58]
fmul qword [0x550f68]
fcomp qword [esp + 0x28]
fld qword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x4bf90a
fsub qword [0x555fe0]
jmp 0x4bf910
fadd qword [0x555fe0]
fstp qword [esp + 0x28]
mov ecx, dword [0x57e2ac]
mov edx, dword [0x57e29c]
mov eax, dword [0x57e298]
mov ebx, dword [ebp + 0x10]
push ecx
push edx
movsx ecx, word [esi + 4]
movsx edx, word [esi + 8]
push eax
mov eax, dword [esi + 0x18]
push ebx
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
mov dword [esp + 0xbc], 2
call fcn.004bfa70
mov ecx, dword [0x57e2a8]
mov edx, dword [0x57e2a4]
mov edi, eax
mov eax, dword [0x57e2b0]
push eax
push ecx
movsx eax, word [esi + 6]
movsx ecx, word [esi + 0xa]
push edx
mov edx, dword [esi + 0x1c]
push ebx
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
mov dword [esp + 0x84], edi
call fcn.004bfa70
add esp, 0x48
cmp edi, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4beda9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea esi, [eax + 0x28]
lea edx, [eax + 0x58]
push esi
add eax, 0x40
push edx
push eax
call fcn.00419040
fstp st(0)
push esi
call fcn.00418ee0
fstp st(0)
add esp, 0x10
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4bfa10
mov esi, dword [ebp + 8]
sub esp, 8
fld qword [esi]
fsub qword [esp + 0x30]
lea eax, [esi + 0x40]
lea ecx, [esi + 0x10]
fstp qword [esp]
push eax
push ecx
call fcn.00418e80
add esp, 0x10
xor eax, eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4bfa61
mov esi, dword [ebp + 8]
sub esp, 8
fld qword [esi + 8]
fsub qword [esp + 0x28]
lea edx, [esi + 0x58]
lea eax, [esi + 0x10]
fstp qword [esp]
push edx
push eax
call fcn.00418e80
add esp, 0x10
xor eax, eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x8c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret