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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5409bc
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1a0]
push edi
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, eax
je 0x4fb1d5
cmp dword [ecx], eax
je 0x4fb1d5
fld dword [esp + 0x1b8]
fmul dword [esp + 0x1b8]
fstp dword [esp + 0x38]
fld dword [esp + 0x1bc]
fmul dword [esp + 0x1bc]
fstp dword [esp + 0x44]
lea eax, [esp + 0x2f]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1a0], edi
call fcn.004da170
lea ecx, [esp + 0x2e]
mov byte [esp + 0x19c], 3
push ecx
lea ecx, [esp + 0x18]
call fcn.004da170
mov eax, dword [esi]
mov byte [esp + 0x19c], 5
push eax
mov ecx, dword [eax]
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x64], esp
push edx
lea ecx, [esp + 0x20]
call fcn.00513c50
lea ecx, [esp + 0x1c]
call fcn.004dd130
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0x28], edi
cmp eax, edi
jle 0x4fac4e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x28]
mov byte [esp + 0x1b], 1
test dl, 1
jle 0x4facdb
mov esi, dword [eax]
cmp esi, eax
je 0x4fa83e
mov eax, esi
mov esi, dword [esi]
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.004fdfd0
mov eax, dword [esp + 0x10]
cmp esi, eax
jne 0x4fa826
mov dword [eax], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
mov eax, dword [0x57f180]
push eax
mov ecx, dword [ebx]
mov edx, dword [eax]
mov dword [esp + 0x24], ecx
call dword [edx + 0x20]
and eax, 1
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 0x14]
sbb ebp, ebp
add ebp, 2
cmp ebx, ecx
je 0x4fac2a
lea esi, [ebx + 8]
push esi
push ecx
push esp
lea ecx, [esp + 0x1c]
call fcn.00513c50
lea edx, [esp + 0x108]
lea ecx, [esp + 0x18]
push edx
call fcn.00421aa0
mov eax, dword [esp + 0x20]
fld dword [eax + 0xc]
fsub dword [esi + 4]
fld dword [eax + 8]
lea edi, [eax + 8]
fsub dword [esi]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fcom dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x4faa33
push esi
lea ecx, [esp + 0xfc]
push edi
push ecx
fstp st(0)
call fcn.004dbab0
lea edx, [esp + 0x104]
lea eax, [esp + 0x88]
push edx
push eax
call fcn.004fee60
lea ecx, [esp + 0x94]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.004f8150
mov eax, dword [0x57f180]
add esp, 0x1c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
fld dword [0x54531c]
fsub dword [esp + 0x1ac]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], 0
push ecx
lea edx, [esp + 0x68]
fsub dword [esp + 0x1b0]
fild qword [esp + 0xcc]
fmulp st(1)
fmul qword [0x547968]
fadd dword [esp + 0x1b0]
fstp dword [esp]
push edi
push esi
push edx
call fcn.005001d0
push edi
lea eax, [esp + 0x148]
push esi
push eax
call fcn.004dbab0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [0x57f180]
add esp, 0x1c
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
fld dword [0x545374]
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
cmp ebp, 1
faddp st(1)
fsqrt
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
jne 0x4fa9d5
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x148]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x64]
push eax
call fcn.004f2c90
jmp 0x4fa9fe
cmp ebp, 2
jne 0x4fa9fe
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x188]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x64]
push eax
call fcn.004fb1f0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0xe8]
mov dword [esp + 0xe8], edx
push ecx
push ecx
push esp
lea ecx, [esp + 0x1c]
mov dword [esp + 0xf8], eax
call fcn.00513c50
lea edx, [esp + 0x110]
jmp 0x4fabe3
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x4fabf9
push esi
lea eax, [esp + 0x118]
push edi
push eax
call fcn.004dbab0
lea ecx, [esp + 0x120]
lea edx, [esp + 0x78]
push ecx
push edx
call fcn.004fee60
lea eax, [esp + 0x84]
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.004f8150
mov eax, dword [0x57f180]
add esp, 0x1c
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
fld dword [0x54531c]
fsub dword [esp + 0x1ac]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0
push ecx
lea eax, [esp + 0x78]
fsub dword [esp + 0x1b0]
fild qword [esp + 0xbc]
fmulp st(1)
fmul qword [0x547968]
fadd dword [esp + 0x1b0]
fstp dword [esp]
push edi
push esi
push eax
call fcn.005001d0
push edi
lea ecx, [esp + 0x168]
push esi
push ecx
call fcn.004dbab0
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1cc]
mov dword [esp + 0x78], edx
add esp, 0x1c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x57f180]
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0xa8], edx
mov ecx, dword [eax]
call dword [ecx + 0x20]
fld dword [esp + 0xa4]
fsub dword [esp + 0x30]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
fild qword [esp + 0xc0]
cmp ebp, 1
fmulp st(1)
fmul qword [0x547968]
fadd dword [esp + 0x30]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
faddp st(1)
fsqrt
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
jne 0x4fab8a
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x178]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x74]
push eax
call fcn.004f2c90
jmp 0x4fabb3
cmp ebp, 2
jne 0x4fabb3
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x168]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x74]
push eax
call fcn.004fb1f0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xd0]
mov dword [esp + 0xd0], edx
push ecx
push ecx
push esp
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe0], eax
call fcn.00513c50
lea edx, [esp + 0x130]
push edx
lea ecx, [esp + 0x1c]
call fcn.00421aa0
mov ebp, dword [ebp*4 + 0x549160]
mov byte [esp + 0x1b], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebx]
mov eax, dword [eax]
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x4fac22
mov al, byte [esp + 0x1c0]
test al, al
je 0x4facae
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
cmp ebx, ecx
jne 0x4fa876
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov dl, byte [esp + 0x1b]
inc esi
test dl, dl
mov dword [esp + 0x28], esi
jne 0x4fac4e
mov edx, dword [esp + 0x1a8]
cmp esi, edx
jl 0x4fa80e
mov edi, dword [esp + 0x1b4]
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x4fac6f
mov eax, esi
mov esi, dword [esi]
push 1
push eax
mov ecx, edi
call fcn.004fdfd0
cmp esi, dword [edi]
jne 0x4fac5d
mov eax, dword [edi]
push ecx
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 4], eax
mov al, byte [esp + 0x2c]
test al, 1
jle 0x4fb13b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], esp
mov eax, esp
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x20]
call fcn.005147e0
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
jmp 0x4fb15f
add ebx, 8
push ebx
push ecx
push esp
lea ecx, [esp + 0x1c]
call fcn.00513c50
lea eax, [esp + 0x118]
lea ecx, [esp + 0x18]
push eax
call fcn.00421aa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x4fac2e
mov esi, dword [ecx]
cmp esi, ecx
je 0x4facf9
mov eax, esi
mov esi, dword [esi]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.004fdfd0
mov ecx, dword [esp + 0x14]
cmp esi, ecx
jne 0x4face1
mov dword [ecx], ecx
mov eax, dword [esp + 0x14]
mov dword [eax + 4], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [0x57f180]
mov ebx, dword [ecx]
push eax
mov ecx, dword [eax]
mov edx, dword [ebx]
mov dword [esp + 0x24], edx
call dword [ecx + 0x20]
and eax, 1
xor edx, edx
cmp edx, eax
mov eax, dword [esp + 0x10]
sbb ebp, ebp
add ebp, 2
cmp ebx, eax
je 0x4fb132
lea esi, [ebx + 8]
push esi
push ecx
push esp
lea ecx, [esp + 0x20]
call fcn.00513c50
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x1c]
push eax
call fcn.00421aa0
mov ecx, dword [esp + 0x20]
fld dword [ecx + 0xc]
fsub dword [esi + 4]
fld dword [ecx + 8]
lea edi, [ecx + 8]
fsub dword [esi]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fcom dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x4faf03
push esi
lea edx, [esp + 0x124]
push edi
push edx
fstp st(0)
call fcn.004dbab0
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x98]
push eax
push ecx
call fcn.004fee60
lea edx, [esp + 0xa4]
lea eax, [esp + 0xa0]
push edx
push eax
call fcn.004f8150
mov eax, dword [0x57f180]
add esp, 0x1c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
fld dword [0x54531c]
fsub dword [esp + 0x1ac]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0
push ecx
lea edx, [esp + 0xa0]
fsub dword [esp + 0x1b0]
fild qword [esp + 0xac]
fmulp st(1)
fmul qword [0x547968]
fadd dword [esp + 0x1b0]
fstp dword [esp]
push edi
push esi
push edx
call fcn.005001d0
push edi
lea eax, [esp + 0x150]
push esi
push eax
call fcn.004dbab0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [0x57f180]
add esp, 0x1c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
fld dword [0x545374]
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
mov dword [esp + 0x1c], eax
cmp ebp, 1
faddp st(1)
fsqrt
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
jne 0x4fae99
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x8c]
push edx
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x9c]
push eax
call fcn.004f2c90
jmp 0x4faec8
cmp ebp, 2
jne 0x4faec8
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x8c]
push edx
lea ecx, [esp + 0x160]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x9c]
push eax
call fcn.004fb1f0
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0xe0]
mov dword [esp + 0xe0], edx
push ecx
push ecx
push esp
lea ecx, [esp + 0x20]
mov dword [esp + 0xf0], eax
call fcn.00513c50
lea edx, [esp + 0x114]
jmp 0x4fb0c2
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x4fb0d8
push esi
lea eax, [esp + 0x130]
push edi
push eax
call fcn.004dbab0
lea ecx, [esp + 0x138]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.004fee60
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x98]
push eax
push ecx
call fcn.004f8150
mov eax, dword [0x57f180]
add esp, 0x1c
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
fld dword [0x54531c]
fsub dword [esp + 0x1ac]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], 0
push ecx
lea eax, [esp + 0x98]
fsub dword [esp + 0x1b0]
fild qword [esp + 0xf4]
fmulp st(1)
fmul qword [0x547968]
fadd dword [esp + 0x1b0]
fstp dword [esp]
push edi
push esi
push eax
call fcn.005001d0
push edi
lea ecx, [esp + 0x180]
push esi
push ecx
call fcn.004dbab0
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1cc]
mov dword [esp + 0x6c], edx
add esp, 0x1c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x57f180]
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x5c], edx
mov ecx, dword [eax]
call dword [ecx + 0x20]
fld dword [esp + 0x58]
fsub dword [esp + 0x40]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0
fild qword [esp + 0xd8]
cmp ebp, 1
fmulp st(1)
fmul qword [0x547968]
fadd dword [esp + 0x40]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fsqrt
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
jne 0x4fb060
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x180]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x94]
push eax
call fcn.004f2c90
jmp 0x4fb08f
cmp ebp, 2
jne 0x4fb08f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x190]
push eax
push ecx
call fcn.004f2e10
add esp, 0xc
lea ecx, [esp + 0x94]
push eax
call fcn.004fb1f0
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0xb0]
mov dword [esp + 0xb0], edx
push ecx
push ecx
push esp
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], eax
call fcn.00513c50
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call fcn.00421aa0
mov ebp, dword [ebp*4 + 0x549160]
mov byte [esp + 0x1b], 0
mov eax, dword [esp + 0x20]
mov ebx, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
cmp ecx, eax
mov dword [esp + 0x20], ecx
jne 0x4fb0fd
mov cl, byte [esp + 0x1c0]
test cl, cl
je 0x4fb10e
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
cmp ebx, eax
jne 0x4fad31
mov ecx, dword [esp + 0x14]
jmp 0x4fac2e
add ebx, 8
push ebx
push ecx
push esp
lea ecx, [esp + 0x20]
call fcn.00513c50
lea edx, [esp + 0x124]
lea ecx, [esp + 0x1c]
push edx
call fcn.00421aa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x4fac2e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], esp
mov eax, esp
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005147e0
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
push eax
mov ecx, edi
call fcn.00513c50
mov ecx, edi
call fcn.004ff570
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 2
call fcn.00504e50
mov ecx, dword [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.004fdfd0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x19c], 0xffffffff
mov esi, dword [eax]
cmp esi, eax
je 0x4fb1bc
mov eax, esi
mov esi, dword [esi]
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.004fdfd0
mov eax, dword [esp + 0x10]
cmp esi, eax
jne 0x4fb1a4
mov dword [eax], eax
mov eax, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x14]
mov dword [eax + 4], eax
mov edx, dword [esp + 0x14]
push edx
call fcn.004fdfd0
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x190
ret