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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5df764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
mov eax, dword [0x649428]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x210]
push esi
push edi
push 1
push 1
lea edx, [esp + 0x1b]
mov dword [esp + 0x324], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
movzx esi, byte [esp + 0x13]
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push 1
push esi
lea edx, [esp + 0x120]
push edx
call dword [eax + 0x2c]
mov ecx, dword [ebx + 0x210]
push 1
push 1
lea edx, [esp + 0x1b]
mov byte [esp + esi + 0x120], 0
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
movzx esi, byte [esp + 0x13]
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push 1
push esi
lea edx, [esp + 0x2a0]
push edx
call dword [eax + 0x2c]
push 0x6c
mov byte [esp + esi + 0x29c], 0
call fcn.0056d2e0
add esp, 4
mov dword [esp + 0x90], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x32c], esi
je 0x57f74d
push 5
mov ecx, eax
call fcn.0057f1e0
mov esi, eax
lea eax, [esp + 0x118]
push eax
lea ecx, [esi + 8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x330], 0xffffffff
call fcn.0056f720
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x298]
push ecx
push edx
call fcn.0057e240
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x7c], edi
je 0x57f7aa
mov dword [esi + 0x14], edi
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [esi]
mov ecx, edi
mov dword [esp + 0x60], eax
call fcn.0057d530
push eax
mov eax, dword [esp + 0x64]
mov ecx, esi
call dword [eax + 0x20]
mov eax, 0xff7fffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, 0x7f7fffff
mov ecx, ebx
mov dword [esp + 0x28], 0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
call fcn.00574840
test al, al
je 0x58038e
lea ecx, [ecx]
mov ecx, ebx
call fcn.00574880
mov ecx, ebx
call fcn.00574a60
cmp eax, 0x4513
jne 0x57fc2d
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 4
push 1
lea eax, [esp + 0xf0]
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 0xe8]
test eax, eax
jle 0x580378
mov dword [esp + 0x20], eax
mov ecx, ebx
call fcn.00574880
mov ecx, ebx
call fcn.00574a60
cmp eax, 0x4515
jne 0x57fc17
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
push 1
lea eax, [esp + 0x2f]
push eax
call dword [edx + 0x2c]
movzx esi, byte [esp + 0x27]
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
push esi
lea eax, [esp + 0x120]
push eax
call dword [edx + 0x2c]
mov ecx, dword [ebx + 0x210]
push 4
push 1
lea eax, [esp + 0x108]
mov byte [esp + esi + 0x120], 0
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x118]
test eax, eax
push ecx
lea ecx, [esp + 0x114]
setne byte [esp + 0x17]
call fcn.0056f7b0
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x110]
push edx
push eax
mov dword [esp + 0x334], 1
call fcn.004fe0a0
add esp, 8
lea ecx, [esp + 0x110]
mov esi, eax
mov dword [esp + 0x32c], 0xffffffff
call fcn.004cac00
test esi, esi
je 0x57fc17
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0057f3b0
mov cl, byte [esp + 0x13]
test cl, cl
mov dword [esp + 0x18], eax
mov byte [eax + 0xa], cl
je 0x57f909
inc dword [esp + 0x28]
mov edx, dword [esi]
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
mov dword [esp + 0xa8], 0x501502f9
mov dword [esp + 0xac], 0x501502f9
mov dword [esp + 0xb0], 0x501502f9
mov dword [esp + 0xb4], 0xd01502f9
mov dword [esp + 0xb8], 0xd01502f9
mov dword [esp + 0xbc], 0xd01502f9
call dword [edx + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x10]
add ecx, 0x10
call dword [edx]
mov edi, eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
mov al, byte [edi + 0x18]
test al, al
mov dword [esp + 0xc8], 0xff7fffff
mov dword [esp + 0xcc], 0xff7fffff
mov dword [esp + 0xd0], 0xff7fffff
mov dword [esp + 0xbc], 0x7f7fffff
mov dword [esp + 0xc0], 0x7f7fffff
mov dword [esp + 0xc4], 0x7f7fffff
jne 0x57f9c2
push 0
mov ecx, edi
call fcn.0056f9b0
mov eax, dword [edi + 8]
xor ecx, ecx
test eax, eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ecx
jle 0x57fa8f
xor esi, esi
lea ebx, [ebx]
test esi, esi
jl 0x57fa75
cmp ecx, eax
jge 0x57fa75
mov eax, dword [edi + 0x14]
add eax, esi
test eax, eax
je 0x57fa75
lea ecx, [eax + 0x70]
mov edx, ecx
mov eax, dword [edx]
mov dword [esp + 0xf0], eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0xf4], eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0xf8], edx
jne 0x57fa63
fld dword [esp + 0xf0]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x44
jp 0x57fa63
fld dword [esp + 0xf4]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x44
jp 0x57fa63
fld dword [esp + 0xf8]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x44
jnp 0x57fa75
push ecx
lea ecx, [esp + 0xc0]
mov byte [esp + 0x17], 1
call fcn.004a5d00
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 8]
inc ecx
add esi, 0x90
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x57f9e0
fld dword [esp + 0xc8]
mov ecx, dword [esp + 0x1c]
fadd dword [esp + 0xbc]
fld dword [esp + 0xcc]
fadd dword [esp + 0xc0]
fld dword [esp + 0xd0]
fadd dword [esp + 0xc4]
fstp dword [esp + 0x6c]
fxch st(1)
fmul dword [0x617db4]
fstp dword [esp + 0x64]
fmul dword [0x617db4]
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fmul dword [0x617db4]
fstp dword [esp + 0x6c]
fld dword [ecx + 0x28]
fld dword [esp + 0x64]
fadd dword [esp + 0xb0]
fst dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x57fb06
fstp st(0)
fld dword [esp + 0x14]
fstp dword [ecx + 0x28]
fld dword [ecx + 0x2c]
fld dword [esp + 0x68]
fadd dword [esp + 0xb4]
fst dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x57fb2a
fstp st(0)
fld dword [esp + 0x14]
fstp dword [ecx + 0x2c]
fld dword [ecx + 0x30]
fld dword [esp + 0x6c]
fadd dword [esp + 0xb8]
fst dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x57fb4e
fstp st(0)
fld dword [esp + 0x14]
fstp dword [ecx + 0x30]
fld dword [ecx + 0x1c]
fld dword [esp + 0x64]
fadd dword [esp + 0xa4]
fst dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x57fb72
fstp st(0)
fld dword [esp + 0x14]
fstp dword [ecx + 0x1c]
fld dword [ecx + 0x20]
fld dword [esp + 0x68]
fadd dword [esp + 0xa8]
fst dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x57fb96
fstp st(0)
fld dword [esp + 0x14]
fstp dword [ecx + 0x20]
fld dword [ecx + 0x24]
fld dword [esp + 0x6c]
fadd dword [esp + 0xac]
fst dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x57fbba
fstp st(0)
fld dword [esp + 0x14]
fstp dword [ecx + 0x24]
mov ecx, ebx
call fcn.00574840
test al, al
je 0x57fc17
mov esi, dword [esp + 0x18]
lea esp, [esp]
mov ecx, ebx
call fcn.00574880
cmp eax, 0x4519
jne 0x57fc05
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push 4
push 1
lea edx, [esp + 0xdc]
push edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0xd4]
mov ecx, eax
mov dword [esp + 0x18], eax
mov dword [esi + 0xc], ecx
mov ecx, ebx
call fcn.00574a10
mov ecx, ebx
call fcn.00574840
test al, al
jne 0x57fbd0
mov ecx, ebx
call fcn.00574a10
dec dword [esp + 0x20]
jne 0x57f823
jmp 0x580378
mov ecx, ebx
call fcn.00574a60
cmp eax, 0x4517
jne 0x57fff0
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 4
push 1
lea eax, [esp + 0xe0]
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 0xd8]
test eax, eax
jle 0x580378
mov dword [esp + 0x20], eax
lea esp, [esp]
mov ecx, ebx
call fcn.00574880
mov ecx, ebx
call fcn.00574a60
cmp eax, 0x4518
jne 0x57ffda
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
push 1
lea eax, [esp + 0x37]
push eax
call dword [edx + 0x2c]
movzx esi, byte [esp + 0x2f]
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
push esi
lea eax, [esp + 0x120]
push eax
call dword [edx + 0x2c]
mov ecx, dword [ebx + 0x210]
push 4
push 1
lea eax, [esp + 0xe4]
mov byte [esp + esi + 0x120], 0
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0xdc]
push 4
test ecx, ecx
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
lea eax, [esp + 0xec]
push eax
setne byte [esp + 0x1f]
call dword [edx + 0x2c]
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x10c]
call fcn.0056f7b0
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x108]
push edx
push eax
mov dword [esp + 0x334], 2
call fcn.0057f0f0
add esp, 8
lea ecx, [esp + 0x108]
mov esi, eax
mov dword [esp + 0x32c], 0xffffffff
call fcn.004cac00
test esi, esi
je 0x57ffda
mov edi, dword [esp + 0xe4]
mov ecx, dword [esp + 0x1c]
push edi
push esi
call fcn.0057f340
mov cl, byte [esp + 0x13]
test cl, cl
mov dword [esp + 0x18], eax
mov byte [eax + 0xa], cl
je 0x57fd75
inc dword [esp + 0x28]
mov edx, dword [esi]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
mov dword [esp + 0x4c], 0x501502f9
mov dword [esp + 0x50], 0x501502f9
mov dword [esp + 0x54], 0x501502f9
mov dword [esp + 0x58], 0xd01502f9
mov dword [esp + 0x5c], 0xd01502f9
mov dword [esp + 0x60], 0xd01502f9
call dword [edx + 0x14]
lea ecx, [esp + 0x198]
call fcn.0055fd80
imul edi, edi, 0xf0
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x18]
lea eax, [edi + edx + 0x50]
push eax
lea ecx, [esp + 0x19c]
push ecx
lea ecx, [esp + 0x220]
call fcn.005608e0
lea edx, [esp + 0x48]
mov ecx, 0x10
lea esi, [esp + 0x218]
lea edi, [esp + 0x198]
push edx
lea eax, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x1a0]
call fcn.00560750
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1a0]
call fcn.00560750
fld dword [esp + 0x48]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x57fe39
fld dword [esp + 0x54]
jmp 0x57fe3d
fld dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x74], eax
fcom dword [esp + 0x74]
fnstsw ax
test ah, 5
jp 0x57fe59
fstp st(0)
fld dword [esp + 0x74]
fstp dword [ecx + 0x28]
fld dword [esp + 0x48]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x57fe71
fld dword [esp + 0x48]
jmp 0x57fe75
fld dword [esp + 0x54]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x78], edx
fcom dword [esp + 0x78]
fnstsw ax
test ah, 5
jnp 0x57fe8d
fstp st(0)
fld dword [esp + 0x78]
fstp dword [ecx + 0x1c]
fld dword [esp + 0x4c]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 5
jp 0x57fea5
fld dword [esp + 0x58]
jmp 0x57fea9
fld dword [esp + 0x4c]
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x88], eax
fcom dword [esp + 0x88]
fnstsw ax
test ah, 5
jp 0x57feca
fstp st(0)
fld dword [esp + 0x88]
fstp dword [ecx + 0x2c]
fld dword [esp + 0x4c]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 5
jp 0x57fee2
fld dword [esp + 0x4c]
jmp 0x57fee6
fld dword [esp + 0x58]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x98], edx
fcom dword [esp + 0x98]
fnstsw ax
test ah, 5
jnp 0x57ff07
fstp st(0)
fld dword [esp + 0x98]
fstp dword [ecx + 0x20]
fld dword [esp + 0x50]
fcomp dword [esp + 0x5c]
fnstsw ax
test ah, 5
jp 0x57ff1f
fld dword [esp + 0x5c]
jmp 0x57ff23
fld dword [esp + 0x50]
mov eax, dword [ecx + 0x30]
mov dword [esp + 0xa0], eax
fcom dword [esp + 0xa0]
fnstsw ax
test ah, 5
jp 0x57ff44
fstp st(0)
fld dword [esp + 0xa0]
fstp dword [ecx + 0x30]
fld dword [esp + 0x50]
fcomp dword [esp + 0x5c]
fnstsw ax
test ah, 5
jp 0x57ff5c
fld dword [esp + 0x50]
jmp 0x57ff60
fld dword [esp + 0x5c]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x9c], edx
fcom dword [esp + 0x9c]
fnstsw ax
test ah, 5
jnp 0x57ff81
fstp st(0)
fld dword [esp + 0x9c]
fstp dword [ecx + 0x24]
mov ecx, ebx
call fcn.00574840
test al, al
je 0x57ffda
mov esi, dword [esp + 0x18]
mov ecx, ebx
call fcn.00574880
cmp eax, 0x4519
jne 0x57ffc8
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push 4
push 1
lea edx, [esp + 0xf4]
push edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0xec]
mov ecx, eax
mov dword [esp + 0x18], eax
mov dword [esi + 0xc], ecx
mov ecx, ebx
call fcn.00574a10
mov ecx, ebx
call fcn.00574840
test al, al
jne 0x57ff93
mov ecx, ebx
call fcn.00574a10
dec dword [esp + 0x20]
jne 0x57fc70
jmp 0x580378
mov ecx, ebx
call fcn.00574a60
cmp eax, 0x4514
jne 0x580378
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 4
push 1
lea eax, [esp + 0x104]
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 0xfc]
test eax, eax
jle 0x580378
mov dword [esp + 0x20], eax
lea esp, [esp]
mov ecx, ebx
call fcn.00574880
mov ecx, ebx
call fcn.00574a60
cmp eax, 0x4516
jne 0x580367
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
push 1
lea eax, [esp + 0x36]
push eax
call dword [edx + 0x2c]
movzx esi, byte [esp + 0x2e]
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
push esi
lea eax, [esp + 0x120]
push eax
call dword [edx + 0x2c]
mov ecx, dword [ebx + 0x210]
push 4
push 1
lea eax, [esp + 0xe8]
mov byte [esp + esi + 0x120], 0
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0xe0]
push 4
test ecx, ecx
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 1
lea eax, [esp + 0x10c]
push eax
setne byte [esp + 0x1f]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x118]
push ecx
push edx
call fcn.0041b040
mov esi, eax
add esp, 8
test esi, esi
je 0x580367
mov edi, dword [esp + 0x104]
mov ecx, dword [esp + 0x1c]
push edi
push esi
call fcn.0057f2d0
mov cl, byte [esp + 0x13]
test cl, cl
mov dword [esp + 0x18], eax
mov byte [eax + 0xa], cl
je 0x5800ff
inc dword [esp + 0x28]
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0x501502f9
mov dword [esp + 0x38], 0x501502f9
mov dword [esp + 0x3c], 0x501502f9
mov dword [esp + 0x40], 0xd01502f9
mov dword [esp + 0x44], 0xd01502f9
mov dword [esp + 0x48], 0xd01502f9
call dword [eax + 0x14]
lea ecx, [esp + 0x1d8]
call fcn.0055fd80
imul edi, edi, 0xf0
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 0x18]
lea ecx, [edi + eax + 0x50]
push ecx
lea edx, [esp + 0x1dc]
push edx
lea ecx, [esp + 0x260]
call fcn.005608e0
mov ecx, 0x10
lea esi, [esp + 0x258]
lea edi, [esp + 0x1d8]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1e0]
call fcn.00560750
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1e0]
call fcn.00560750
fld dword [esp + 0x30]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x5801c3
fld dword [esp + 0x3c]
jmp 0x5801c7
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x70], edx
fcom dword [esp + 0x70]
fnstsw ax
test ah, 5
jp 0x5801e3
fstp st(0)
fld dword [esp + 0x70]
fstp dword [ecx + 0x28]
fld dword [esp + 0x30]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x5801fb
fld dword [esp + 0x30]
jmp 0x5801ff
fld dword [esp + 0x3c]
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x80], eax
fcom dword [esp + 0x80]
fnstsw ax
test ah, 5
jnp 0x580220
fstp st(0)
fld dword [esp + 0x80]
fstp dword [ecx + 0x1c]
fld dword [esp + 0x34]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x580238
fld dword [esp + 0x40]
jmp 0x58023c
fld dword [esp + 0x34]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x84], edx
fcom dword [esp + 0x84]
fnstsw ax
test ah, 5
jp 0x58025d
fstp st(0)
fld dword [esp + 0x84]
fstp dword [ecx + 0x2c]
fld dword [esp + 0x34]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x580275
fld dword [esp + 0x34]
jmp 0x580279
fld dword [esp + 0x40]
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x94], eax
fcom dword [esp + 0x94]
fnstsw ax
test ah, 5
jnp 0x58029a
fstp st(0)
fld dword [esp + 0x94]
fstp dword [ecx + 0x20]
fld dword [esp + 0x38]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 5
jp 0x5802b2
fld dword [esp + 0x44]
jmp 0x5802b6
fld dword [esp + 0x38]
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x8c], edx
fcom dword [esp + 0x8c]
fnstsw ax
test ah, 5
jp 0x5802d7
fstp st(0)
fld dword [esp + 0x8c]
fstp dword [ecx + 0x30]
fld dword [esp + 0x38]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 5
jp 0x5802ef
fld dword [esp + 0x38]
jmp 0x5802f3
fld dword [esp + 0x44]
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x60], eax
fcom dword [esp + 0x60]
fnstsw ax
test ah, 5
jnp 0x58030b
fstp st(0)
fld dword [esp + 0x60]
fstp dword [ecx + 0x24]
mov ecx, ebx
call fcn.00574840
test al, al
je 0x580367
mov esi, dword [esp + 0x18]
lea ecx, [ecx]
mov ecx, ebx
call fcn.00574880
cmp eax, 0x4519
jne 0x580355
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push 4
push 1
lea eax, [esp + 0x98]
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x90]
mov edx, ecx
mov dword [esp + 0x18], ecx
mov dword [esi + 0xc], edx
mov ecx, ebx
call fcn.00574a10
mov ecx, ebx
call fcn.00574840
test al, al
jne 0x580320
mov ecx, ebx
call fcn.00574a10
dec dword [esp + 0x20]
jne 0x580030
mov ecx, ebx
call fcn.00574a10
mov ecx, ebx
call fcn.00574840
test al, al
jne 0x57f7e0
mov esi, dword [esp + 0x1c]
fld dword [esi + 0x1c]
mov eax, dword [esp + 0x28]
fadd dword [esi + 0x28]
push eax
lea ecx, [esi + 0x50]
fmul dword [0x617db4]
fstp dword [esi + 0x34]
fld dword [esi + 0x2c]
fadd dword [esi + 0x20]
fmul dword [0x617db4]
fstp dword [esi + 0x38]
fld dword [esi + 0x30]
fadd dword [esi + 0x24]
fmul dword [0x617db4]
fstp dword [esi + 0x3c]
fld dword [esi + 0x28]
fsub dword [esi + 0x34]
fld dword [esi + 0x2c]
fsub dword [esi + 0x38]
fld dword [esi + 0x30]
fsub dword [esi + 0x3c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fstp dword [esi + 0x40]
call fcn.0059b270
mov ecx, dword [esp + 0x324]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x31c]
xor ecx, dword [ebp + 4]
mov eax, esi
call fcn.005ca9da
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8